fix(iam): codify live terraform-substrate IAM (PLAT-142) (#135)
Some checks are pending
Deploy / deploy-management (push) Waiting to run
Deploy / deploy-external-dev (push) Waiting to run
Deploy / deploy-security (push) Waiting to run
Deploy / deploy-dev (push) Waiting to run
Deploy / deploy-prod (push) Waiting to run

* fix(iam): allow frontend import plan to read deploy boundaries

* fix(iam): grant backend apply role EB UpdateEnvironment follow-on perms
This commit is contained in:
Adam Moussa 2026-09-01 00:16:34 +00:00 • committed by GitHub
parent 559eed1e98
commit 6d5811f08e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 48 additions and 0 deletions

View file

@ -164,6 +164,12 @@ const frontendReadPolicy = (
],
Resource: roleArn(environment.deployRoleName),
},
{
Sid: "ReadExactDeployBoundary",
Effect: "Allow",
Action: ["iam:GetPolicy", "iam:GetPolicyVersion"],
Resource: `arn:aws:iam::${ACCOUNT_ID}:policy/shoc-frontend-new-${environment.key}-deploy-boundary`,
},
{
Sid: "ReadGithubOidcProvider",
Effect: "Allow",

View file

@ -3308,6 +3308,48 @@ Resources:
- elasticbeanstalk:UpdateEnvironment
- elasticbeanstalk:UpdateTagsForResource
Resource: arn:aws:elasticbeanstalk:us-east-1:396287094661:environment/shoc-backend/shoc-backend-dev
- Sid: ManageDevEnvironmentStack
Effect: Allow
Action:
- cloudformation:CancelUpdateStack
- cloudformation:DescribeStackEvents
- cloudformation:DescribeStackResource
- cloudformation:DescribeStackResources
- cloudformation:DescribeStacks
- cloudformation:GetTemplate
- cloudformation:ListStackResources
- cloudformation:UpdateStack
Resource: arn:aws:cloudformation:us-east-1:396287094661:stack/awseb-e-hehnrqjjrt-stack/*
- Sid: DescribeDeploymentResources
Effect: Allow
Action:
- autoscaling:Describe*
- ec2:Describe*
- elasticloadbalancing:Describe*
Resource: "*"
- Sid: ManageDevEnvironmentAsg
Effect: Allow
Action:
- autoscaling:PutNotificationConfiguration
- autoscaling:ResumeProcesses
- autoscaling:SuspendProcesses
Resource: arn:aws:autoscaling:us-east-1:396287094661:autoScalingGroup:*:autoScalingGroupName/awseb-e-hehnrqjjrt-stack-*
- Sid: LegacyBeanstalkObjects
Effect: Allow
Action:
- s3:Delete*
- s3:Get*
- s3:Put*
Resource: arn:aws:s3:::elasticbeanstalk-*/*
- Sid: LegacyBeanstalkBuckets
Effect: Allow
Action:
- s3:GetBucket*
- s3:ListBucket
- s3:PutBucketOwnershipControls
- s3:PutBucketPolicy
- s3:PutBucketPublicAccessBlock
Resource: arn:aws:s3:::elasticbeanstalk-*
- Sid: PutDevRuntimePolicy
Effect: Allow
Action: iam:PutRolePolicy