Skip to content

Commit df7430e

Browse files
committed
eli-279 api gateway issues
1 parent b1df959 commit df7430e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ resource "aws_iam_policy" "s3_management" {
145145
"s3:PutBucketVersioning",
146146
"s3:PutBucketPublicAccessBlock",
147147
"s3:PutBucketLogging",
148+
"s3:GetObjectTagging",
149+
"s3:PutObjectTagging",
148150
],
149151
Resource = [
150152
"arn:aws:s3:::*eligibility-signposting-api-${var.environment}-eli-rules",
@@ -184,12 +186,8 @@ resource "aws_iam_policy" "api_infrastructure" {
184186
"ec2:Describe*",
185187
"ec2:DescribeVpcs",
186188
"acm:ListCertificates",
187-
"apigateway:CreateRestApi",
188-
"apigateway:PUT",
189-
"apigateway:POST",
190-
"apigateway:PATCH",
191-
"apigateway:GET",
192-
"apigateway:UpdateAccount",
189+
"apigateway:*",
190+
"iam:PassRole",
193191
],
194192
Resource = "*"
195193
#checkov:skip=CKV_AWS_289: Actions require wildcard resource

0 commit comments

Comments
 (0)