AWS codecatalyst medium security documentation change
Summary
Removed a JSON IAM policy example granting broad permissions (e.g., wildcard resources and actions)
Security assessment
The removed policy example included overly permissive permissions (e.g., `Resource: "*"` and broad actions like `lambda:*`). Removing it prevents users from inadvertently using insecure configurations, addressing a potential security risk of excessive privileges.
Diff
diff --git a/codecatalyst/latest/userguide/projects-troubleshooting-onpullrequest.md b/codecatalyst/latest/userguide/projects-troubleshooting-onpullrequest.md index 6d289bfd2..b0ab1796f 100644 --- a//codecatalyst/latest/userguide/projects-troubleshooting-onpullrequest.md +++ b//codecatalyst/latest/userguide/projects-troubleshooting-onpullrequest.md @@ -61,53 +60,0 @@ In the IAM console, find the role from step 5, such as `CodeCatalystPreviewDevel -JSON - - -**** - - - { - "Version": "2012-10-17", - "Statement": [ - { - "Action": [ - "cloudformation:*", - "lambda:*", - "apigateway:*", - "ecr:*", - "ecs:*", - "ssm:*", - "codedeploy:*", - "s3:*", - "iam:DeleteRole", - "iam:UpdateRole", - "iam:Get*", - "iam:TagRole", - "iam:PassRole", - "iam:CreateRole", - "iam:AttachRolePolicy", - "iam:DetachRolePolicy", - "iam:PutRolePolicy", - "iam:CreatePolicy", - "iam:DeletePolicy", - "iam:CreatePolicyVersion", - "iam:DeletePolicyVersion", - "iam:PutRolePermissionsBoundary", - "iam:DeleteRolePermissionsBoundary", - "sts:AssumeRole", - "elasticloadbalancing:DescribeTargetGroups", - "elasticloadbalancing:DescribeListeners", - "elasticloadbalancing:ModifyListener", - "elasticloadbalancing:DescribeRules", - "elasticloadbalancing:ModifyRule", - "cloudwatch:DescribeAlarms", - "sns:Publish", - "sns:ListTopics", - "codeguru-reviewer:*", - "codeguru:*" - ], - "Resource": "*", - "Effect": "Allow" - } - ] - } - -