Repository navigation
fix: sync Forge AWS GitHub deploy with working 8.0.x - #16265
Merged
Merged
Conversation
Copy forge-deploy-aws.yml (no --process, fail fast on EB errors) and shared.yaml GitHubDeployRole managed policies from 8.0.x.
Contributor
There was a problem hiding this comment.
Pull request overview
Syncs the Grails Forge AWS Elastic Beanstalk GitHub Actions deployment workflow and its supporting IAM role definition with the known-working implementation from the 8.0.x line, aiming to improve deployment robustness (notably failing fast when Elastic Beanstalk reports errors).
Changes:
- Updates the Forge AWS deploy workflow to remove Elastic Beanstalk application version “process” polling and to fail fast based on Elastic Beanstalk ERROR events.
- Expands the CloudFormation IAM role used by GitHub OIDC deploys (managed policies + additional S3/CFN/ASG/EC2 permissions) to support the updated deployment behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
grails-forge/infrastructure/shared.yaml |
Broadens GitHubDeployRole permissions and adds AWS-managed policies for Elastic Beanstalk deployment operations. |
.github/workflows/forge-deploy-aws.yml |
Adjusts Elastic Beanstalk deployment logic to remove --process/polling and detect EB ERROR events during rollout. |
Suppressed comments (1)
.github/workflows/forge-deploy-aws.yml:205
- To ensure Elastic Beanstalk ERROR events are captured from the moment the deployment is initiated, set
START_ISOimmediately beforeaws elasticbeanstalk update-environmentand letwait_for_ready_greenuse it.
aws elasticbeanstalk create-application-version \
--application-name "${APPLICATION_NAME}" \
--version-label "${VERSION_LABEL}" \
--source-bundle "S3Bucket=${ARTIFACT_BUCKET},S3Key=${S3_KEY}" >/dev/null
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+228
to
+231
| ManagedPolicyArns: | ||
| - Fn::Sub: arn:${AWS::Partition}:iam::aws:policy/AdministratorAccess-AWSElasticBeanstalk | ||
| - Fn::Sub: arn:${AWS::Partition}:iam::aws:policy/AWSElasticBeanstalkWebTier | ||
| - Fn::Sub: arn:${AWS::Partition}:iam::aws:policy/AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy |
Comment on lines
250
to
+256
| - Action: | ||
| - s3:GetObject | ||
| - s3:GetObjectVersion | ||
| - s3:GetObjectAcl | ||
| - s3:PutObject | ||
| - s3:PutObjectAcl | ||
| - s3:DeleteObject |
Comment on lines
+167
to
+168
| local start_iso | ||
| start_iso="$(date -u +%Y-%m-%dT%H:%M:%SZ)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync Forge AWS GitHub deploy with working 8.0.x
Copy forge-deploy-aws.yml (no --process, fail fast on EB errors) and
shared.yaml GitHubDeployRole managed policies from 8.0.x.