AWS codecatalyst high security documentation change
Summary
Removed multiple example IAM policy JSON blocks demonstrating Lambda execution roles, trust relationships, and deployment permissions
Security assessment
The removed policies contained overly permissive permissions (e.g., Resource: '*' for cloudformation/iam/s3 actions and broad service principals in trust relationships). These examples could lead to insecure configurations if followed literally, making this a security-related change to prevent users from adopting risky practices. The removal of wildcard permissions and ambiguous service principals improves security posture guidance.
Diff
diff --git a/codecatalyst/latest/userguide/deploy-tut-lambda.md b/codecatalyst/latest/userguide/deploy-tut-lambda.md index a36c6683a..06914f7d7 100644 --- a//codecatalyst/latest/userguide/deploy-tut-lambda.md +++ b//codecatalyst/latest/userguide/deploy-tut-lambda.md @@ -131,28 +130,0 @@ A [Lambda execution role](https://docs.aws.amazon.com/lambda/latest/dg/lambda-in -JSON - - -**** - - - { - "Version": "2012-10-17", - "Statement": [{ - "Action": [ - "cloudformation:CreateStack", - "cloudformation:DeleteStack", - "cloudformation:Describe*", - "cloudformation:UpdateStack", - "cloudformation:CreateChangeSet", - "cloudformation:DeleteChangeSet", - "cloudformation:ExecuteChangeSet", - "cloudformation:SetStackPolicy", - "cloudformation:ValidateTemplate", - "cloudformation:List*", - "iam:PassRole" - ], - "Resource": "*", - "Effect": "Allow" - }] - } - - @@ -187,24 +158,0 @@ You have now created a permissions policy. -JSON - - -**** - - - { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Service": [ - "-runner.amazonaws.com", - ".amazonaws.com" - ] - }, - "Action": "sts:AssumeRole" - } - ] - } - - @@ -264,19 +211,0 @@ You have now created the deploy role with the appropriate permissions, and obtai -JSON - - -**** - - - { - "Version": "2012-10-17", - "Statement": [{ - "Action": [ - "s3:PutObject", - "iam:PassRole" - ], - "Resource": "*", - "Effect": "Allow" - }] - } - - @@ -311,24 +239,0 @@ You have now created a permissions policy. -JSON - - -**** - - - { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Service": [ - "-runner.amazonaws.com", - ".amazonaws.com" - ] - }, - "Action": "sts:AssumeRole" - } - ] - } - -