Repository navigation
fix: sync Forge AWS GitHub deploy with working 8.0.x - #16263
Conversation
Copy forge-deploy-aws.yml (no --process, fail fast on EB errors) and shared.yaml GitHubDeployRole managed policies from 8.0.x.
There was a problem hiding this comment.
Pull request overview
Aligns the Grails Forge AWS Elastic Beanstalk deployment workflow and its supporting CloudFormation shared stack with the known-working 8.0.x configuration (notably: removing EB “process” polling and tightening deployment behavior to fail fast on EB-reported errors, plus syncing IAM role permissions/trust patterns).
Changes:
- Updated
GitHubDeployRolein the shared CloudFormation stack (managed policies + expanded S3/describe permissions; trust now matchesrefs/heads/*.xandrefs/tags/v*). - Simplified EB application-version creation in the GitHub Actions workflow (removed
--process+ custom processing polling) and added EB ERROR-event detection during rollout. - Updated infrastructure README to reflect the new trust-policy patterns.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
grails-forge/infrastructure/shared.yaml |
Syncs IAM role trust/policies to match the 8.0.x “working” deployment permissions and allowed refs. |
grails-forge/infrastructure/README.md |
Updates documentation to reflect the new GitHub OIDC trust-policy constraints. |
.github/workflows/forge-deploy-aws.yml |
Removes application-version processing polling and adds EB event-based failure detection during deployment. |
Suppressed comments (1)
.github/workflows/forge-deploy-aws.yml:205
wait_for_ready_greenis called after starting the environment update, but its ERROR-event polling start time is currently computed inside the function. Capture the start timestamp before creating/updating the EB version and pass it through so ERROR events from the very beginning of the deployment aren't missed.
--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.
| wait_for_ready_green() { | ||
| local operation="$1" | ||
| local expected_version="$2" | ||
| local status health current_version attempt | ||
| local status health current_version attempt event | ||
| local start_iso |
|
To address the issue where Here is the suggested update for the function definition: wait_for_ready_green() {
local operation="$1"
local expected_version="$2"
local start_iso="${3:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}"
local status health current_version attempt event
for attempt in {1..90};By defaulting .github/workflows/forge-deploy-aws.yml |
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.