AWS amazonq medium security documentation change
Summary
Removed multiple JSON policy examples including permissions for SSO directory access, KMS grants, CodeWhisperer customization, CodeConnections access, S3 access, plugin management, and EC2 security group/network analysis configurations
Security assessment
Removal of overly permissive policies (e.g., wildcard resources in S3 access, KMS:CreateGrant permissions) reduces potential attack surface. The deleted EC2 security group policies with specific tagging conditions suggest tightening of network security controls. These changes appear to enforce least-privilege principles.
Diff
diff --git a/amazonq/latest/qdeveloper-ug/id-based-policy-examples-admins.md b/amazonq/latest/qdeveloper-ug/id-based-policy-examples-admins.md index d1c4d9469..34ff3c084 100644 --- a//amazonq/latest/qdeveloper-ug/id-based-policy-examples-admins.md +++ b//amazonq/latest/qdeveloper-ug/id-based-policy-examples-admins.md @@ -508,86 +507,0 @@ In the following example, replace `account number` with your AWS account number. -JSON - - -**** - - - - { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "sso-directory:DescribeUsers" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "kms:CreateGrant" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "codewhisperer:CreateCustomization", - "codewhisperer:DeleteCustomization", - "codewhisperer:ListCustomizations", - "codewhisperer:ListCustomizationVersions", - "codewhisperer:UpdateCustomization", - "codewhisperer:GetCustomization", - "codewhisperer:ListCustomizationPermissions", - "codewhisperer:AssociateCustomizationPermission", - "codewhisperer:DisassociateCustomizationPermission" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "codeconnections:ListConnections", - "codeconnections:ListOwners", - "codeconnections:ListRepositories", - "codeconnections:GetConnection" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": "codeconnections:UseConnection", - "Resource": "*", - "Condition": { - "ForAnyValue:StringEquals": { - "codeconnections:ProviderAction": [ - "GitPull", - "ListRepositories", - "ListOwners" - ] - } - } - }, - { - "Effect": "Allow", - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:ListBucket*" - ], - "Resource": [ - "*" - ] - } - ] - } - - @@ -667,24 +580,0 @@ In order to access the Amazon Q Developer console, administrators also need the -JSON - - -**** - - - - { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "Allow permissions to create a plugin from one provider", - "Effect": "Allow", - "Action": [ - "q:CreatePlugin", - "q:GetPlugin", - "q:DeletePlugin" - ], - "Resource": "arn:aws:qdeveloper:us-east-1:AWS-account-ID:plugin/plugin-provider/*" - } - ] - } - - @@ -693,137 +582,0 @@ JSON -JSON - - -**** - - - - { - "Version": "2012-10-17", - "Statement": [{ - "Sid": "MGNNetworkMigrationAnalyzerEC2ResourceSgTag", - "Effect": "Allow", - "Action": [ - "ec2:CreateSecurityGroup" - ], - "Resource": [ - "arn:aws:ec2:region:account-id:vpc/*" - ], - "Condition": { - "StringEquals": { - "aws:ResourceTag/CreatedBy": "AWSApplicationMigrationService" - } - } - }, - { - "Sid": "MGNNetworkMigrationAnalyzerEC2RequestSgTag", - "Effect": "Allow", - "Action": [ - "ec2:CreateSecurityGroup" - ], - "Resource": [ - "arn:aws:ec2:region:account-id:security-group/*", - "arn:aws:ec2:region:account-id:security-group-rule/*" - ], - "Condition": { - "StringEquals": { - "aws:RequestTag/CreatedBy": "AWSApplicationMigrationService" - } - } - }, - - { - "Sid": "MGNNetworkMigrationAnalyzerEC2SecurityGroupTags", - "Effect": "Allow", - "Action": [ - "ec2:CreateTags" - ], - "Resource": [ - "arn:aws:ec2:region:account-id:security-group/*", - "arn:aws:ec2:region:account-id:security-group-rule/*", - "arn:aws:ec2:region:account-id:network-interface/*", - "arn:aws:ec2:region:account-id:network-insights-path/*", - "arn:aws:ec2:region:account-id:network-insights-analysis/*" - ], - "Condition": { - "StringEquals": { - "aws:RequestTag/CreatedBy": "AWSApplicationMigrationService", - "ec2:CreateAction": [ - "CreateSecurityGroup", - "CreateNetworkInterface", - "CreateNetworkInsightsPath", - "StartNetworkInsightsAnalysis" - ] - } - } - }, - { - "Sid": "MGNNetworkMigrationAnalyzerENIResourceTag", - "Effect": "Allow", - "Action": [ - "ec2:CreateNetworkInterface" - ], - "Resource": [ - "arn:aws:ec2:region:account-id:subnet/*" - ], - "Condition": { - "StringEquals": { - "aws:ResourceTag/CreatedBy": "AWSApplicationMigrationService" - } - } - }, - { - "Sid": "MGNNetworkMigrationAnalyzerENISG",