Skip to content

Commit a45b390

Browse files
authored
Merge pull request #251 from NHSDigital/bugfix/eja-add-github-ec2-public-access-block-permission
bugfix - Github action needs permission to modify public access block
2 parents 6b1848d + 9b16ba0 commit a45b390

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
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

0 commit comments

Comments
 (0)