fix(iam): grant staging githubdeploy named S3 reads on EB resources prefix

This commit is contained in:
Adam Moussa 2026-09-18 13:22:06 -04:00
parent a6b5a34512
commit afa16bd570
No known key found for this signature in database

View file

@ -295,12 +295,15 @@ data "aws_iam_policy_document" "deploy" {
effect = "Allow"
actions = [
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:GetObjectVersion",
"s3:GetObjectVersionAcl",
]
resources = [
"arn:aws:s3:::${local.eb_bucket_name}/${var.eb_application_name}/*",
"arn:aws:s3:::${local.eb_bucket_name}/resources/_runtime/_embedded_extensions/${var.eb_application_name}/*",
"arn:aws:s3:::${local.eb_bucket_name}/resources/*",
]
}
}