File tree Expand file tree Collapse file tree
infrastructure/stacks/iams-developer-roles Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ resource "aws_iam_policy" "api_infrastructure" {
190190 " ssm:DescribeParameters" ,
191191 " ec2:Describe*" ,
192192 " ec2:DescribeVpcs" ,
193+ " ec2:ModifyVpcBlockPublicAccessOptions" ,
193194 # API Gateway domain and deployment
194195 " apigateway:*" ,
195196 # ACM for certs
@@ -204,6 +205,7 @@ resource "aws_iam_policy" "api_infrastructure" {
204205 " logs:PutLogEvents" ,
205206 # IAM PassRole for logging role association (if needed)
206207 " iam:PassRole"
208+
207209 ],
208210 Resource = " *"
209211 # checkov:skip=CKV_AWS_289: Actions require wildcard resource
@@ -238,7 +240,6 @@ resource "aws_iam_policy" "api_infrastructure" {
238240 " ec2:ReplaceNetworkAclAssociation" ,
239241 " ec2:DeleteSecurityGroup" ,
240242 " ec2:DeleteNetworkAcl" ,
241- " ec2:ModifyVpcBlockPublicAccessOptions" ,
242243
243244 # ssm
244245 " ssm:GetParameter" ,
You can’t perform that action at this time.
0 commit comments