fix(iam): allow staging githubdeploy GetBucketPolicy on the EB bucket

This commit is contained in:
Adam Moussa 2026-09-18 14:00:13 -04:00
parent 1cb095e8bf
commit f4d9a4a1b8
No known key found for this signature in database

View file

@ -313,8 +313,15 @@ data "aws_iam_policy_document" "deploy" {
dynamic "statement" { dynamic "statement" {
for_each = local.use_legacy_s3_policy ? [] : [1] for_each = local.use_legacy_s3_policy ? [] : [1]
content { content {
effect = "Allow" effect = "Allow"
actions = ["s3:GetBucketLocation", "s3:ListBucket"] actions = [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:GetBucketPolicy",
"s3:GetBucketAcl",
"s3:GetBucketVersioning",
"s3:GetBucketOwnershipControls",
]
resources = ["arn:aws:s3:::${local.eb_bucket_name}"] resources = ["arn:aws:s3:::${local.eb_bucket_name}"]
} }
} }