AWS artifact medium security documentation change
Summary
Restructured IAM policy to scope EnableAWSServiceAccess permission with service principal condition
Security assessment
Introduced service principal condition to limit EnableAWSServiceAccess permissions specifically to AWS Artifact, improving security posture through least privilege access control.
Diff
diff --git a/artifact/latest/ug/example-iam-policies.md b/artifact/latest/ug/example-iam-policies.md index 7b8f9ec74..327fa7c7c 100644 --- a//artifact/latest/ug/example-iam-policies.md +++ b//artifact/latest/ug/example-iam-policies.md @@ -412 +411,0 @@ The following policy grants permission to grant AWS Artifact the permissions to - "organizations:EnableAWSServiceAccess", @@ -416,0 +416,15 @@ The following policy grants permission to grant AWS Artifact the permissions to + }, + { + "Sid": "EnableServiceTrustForArtifact", + "Effect": "Allow", + "Action": [ + "organizations:EnableAWSServiceAccess" + ], + "Resource": "*", + "Condition": { + "StringEquals": { + "organizations:ServicePrincipal": [ + "aws-artifact-account-sync.amazonaws.com" + ] + } + } @@ -482 +495,0 @@ The following policy grants permissions to manage agreements for the management - "organizations:EnableAWSServiceAccess", @@ -486,0 +500,15 @@ The following policy grants permissions to manage agreements for the management + }, + { + "Sid": "EnableServiceTrustForArtifact", + "Effect": "Allow", + "Action": [ + "organizations:EnableAWSServiceAccess" + ], + "Resource": "*", + "Condition": { + "StringEquals": { + "organizations:ServicePrincipal": [ + "aws-artifact-account-sync.amazonaws.com" + ] + } + }