diff --git a/lib/terraform-substrate/terraform-substrate.template.yaml b/lib/terraform-substrate/terraform-substrate.template.yaml index 3483108..9acf137 100644 --- a/lib/terraform-substrate/terraform-substrate.template.yaml +++ b/lib/terraform-substrate/terraform-substrate.template.yaml @@ -3217,6 +3217,7 @@ Resources: Effect: Allow Action: - acm:ListCertificates + - autoscaling:DescribeAutoScalingGroups - ec2:DescribeSecurityGroups - ec2:DescribeSubnets - ec2:DescribeVpcs @@ -3227,12 +3228,26 @@ Resources: - elasticbeanstalk:DescribeEnvironments - elasticbeanstalk:ListTagsForResource - rds:DescribeDBInstances + - route53:ListHostedZones - route53:ListHostedZonesByName Resource: "*" + # Elastic Beanstalk DescribeConfigurationSettings calls + # CreateBucket against its existing regional service bucket + # during both plan and apply refresh. + - Sid: AuthorizeExistingEbBucketDiscovery + Effect: Allow + Action: + - s3:CreateBucket + - s3:PutBucketOwnershipControls + Resource: arn:aws:s3:::elasticbeanstalk-us-east-1-396287094661 + Condition: + StringEquals: + s3:x-amz-object-ownership: ObjectWriter - Sid: ReadSharedCertificate Effect: Allow Action: - acm:DescribeCertificate + - acm:GetCertificate - acm:ListTagsForCertificate Resource: arn:aws:acm:us-east-1:396287094661:certificate/2b78e74f-7b65-4b82-a413-7a498b102f00 - Sid: ReadSharedRdsTags