diff --git a/lib/terraform-substrate/terraform-substrate.template.yaml b/lib/terraform-substrate/terraform-substrate.template.yaml index 3c5f8ce..d3c4244 100644 --- a/lib/terraform-substrate/terraform-substrate.template.yaml +++ b/lib/terraform-substrate/terraform-substrate.template.yaml @@ -3605,6 +3605,16 @@ Resources: - s3:PutBucketPolicy - s3:PutBucketPublicAccessBlock Resource: arn:aws:s3:::elasticbeanstalk-us-east-1-396287094661 + # Elastic Beanstalk stages the CloudFormation template for + # configuration UpdateStack calls in its AWS-owned regional + # bucket and CloudFormation fetches it with the caller's + # credentials. Zip deploys never touch this path. + - Sid: ReadBeanstalkServiceTemplates + Effect: Allow + Action: + - s3:GetObject + - s3:GetObjectVersion + Resource: arn:aws:s3:::elasticbeanstalk-us-east-1/* - Sid: ManageCloudFormationTemplates Effect: Allow Action: