Skip to content

fix: sync Forge AWS GitHub deploy with working 8.0.x - #16265

Merged
jamesfredley merged 1 commit into
7.2.xfrom
sync/forge-aws-gha-7.2
Aug 29, 2026
Merged

jamesfredley merged 1 commit into
7.2.xfrom
sync/forge-aws-gha-7.2

Conversation

@jamesfredley

Copy link
Copy Markdown
Contributor

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.

Copy forge-deploy-aws.yml (no --process, fail fast on EB errors) and
shared.yaml GitHubDeployRole managed policies from 8.0.x.
Copilot AI lite review requested due to automatic review settings August 29, 2026 02:11
@jamesfredley
jamesfredley merged commit c08ff11 into 7.2.x Aug 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_ISO immediately before aws elasticbeanstalk update-environment and let wait_for_ready_green use 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)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants