Skip to content

fix(ci): resolve AWS_REGION at job level in the AWS deploy workflows - #636

Merged
cristim merged 1 commit into
mainfrom
fix/aws-region-job-env-298
Oct 6, 2026
Merged

cristim merged 1 commit into
mainfrom
fix/aws-region-job-env-298

Conversation

@cristim

@cristim cristim commented Oct 6, 2026

Copy link
Copy Markdown
Member

Closes #298

Moves AWS_REGION from the workflow-level env: into the three environment-bound jobs (deploy-aws-lambda.yml build-and-deploy and test-deployment, deploy-aws-fargate.yml deploy), matching destroy-fargate-dev.yml and cleanup-staging.yml.

Checks: actionlint clean on both files. Workflows cannot be run locally; CI is the check.

Workflow-level env is evaluated before a job's environment binding, so an
environment-scoped AWS_REGION was invisible and prod deployed to the
repo-level region or the us-east-1 fallback. Set it per environment-bound
job, as destroy-fargate-dev.yml and cleanup-staging.yml already do.
@cristim cristim added priority/p2 Backlog-worthy severity/medium Moderate harm impact/internal Team-internal only triaged Item has been triaged urgency/this-quarter Within the quarter effort/xs Trivial / one-liner type/bug Defect labels Oct 6, 2026
@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 2 billable files and costs up to $0.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 5 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 68 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: LeanerCloud/cloud-commitments-platform/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: f7f18a93-8c09-43b8-a34f-723547ff8fd1
📥 Commits

Reviewing files that changed from the base of the PR and between 3413591 and faf3af8.

📒 Files selected for processing (2)
  • .github/workflows/deploy-aws-fargate.yml
  • .github/workflows/deploy-aws-lambda.yml
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@cristim
cristim merged commit 0075fbe into main Oct 6, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/xs Trivial / one-liner impact/internal Team-internal only priority/p2 Backlog-worthy severity/medium Moderate harm triaged Item has been triaged type/bug Defect urgency/this-quarter Within the quarter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): AWS_REGION resolves at workflow level, hiding environment-scoped values

1 participant