Skip to content

fix: configure proper creds for cleanup#2093

Merged
samrose merged 1 commit intodevelopfrom
sam/cleanup-fix
Mar 24, 2026
Merged

fix: configure proper creds for cleanup#2093
samrose merged 1 commit intodevelopfrom
sam/cleanup-fix

Conversation

@samrose
Copy link
Collaborator

@samrose samrose commented Mar 23, 2026

Added a configure-aws-credentials step before both cleanup steps that
re-assumes DEV_AWS_ROLE in us-east-1 the same role, action version (v4.3.1),
and region used by the original aws-creds step at line 51 that has EC2
permissions. It uses if: ${{ always() }} so it runs even on
failure/cancellation, matching the cleanup steps it precedes.

Copilot AI review requested due to automatic review settings March 23, 2026 23:25
@samrose samrose requested review from a team as code owners March 23, 2026 23:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to ensure the AMI build workflow can still terminate EC2 resources during cleanup by re-configuring AWS credentials right before cleanup runs (even on failure/cancellation).

Changes:

  • Added an aws-actions/configure-aws-credentials step (with if: always()) immediately before cleanup in ami-release-nix.yml.
  • Updated ansible/vars.yml Postgres release strings to include a -cleanup-1 suffix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ansible/vars.yml Adds -cleanup-1 suffixes to postgres_release values (currently violates CI merge requirements).
.github/workflows/ami-release-nix.yml Re-assumes DEV_AWS_ROLE in us-east-1 before cleanup so EC2 termination can succeed after other role assumptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@samrose samrose enabled auto-merge March 24, 2026 14:46
@samrose samrose added this pull request to the merge queue Mar 24, 2026
Merged via the queue into develop with commit 237fb2b Mar 24, 2026
36 checks passed
@samrose samrose deleted the sam/cleanup-fix branch March 24, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants