Skip to content

Commit 9b16ba0

Browse files
committed
bugfix - changing permission to be wildcard resource, as it's an account level permission
1 parent 33a630f commit 9b16ba0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

infrastructure/stacks/iams-developer-roles/github_actions_policies.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)