Skip to content

fix(ci): clean up dangling EBS volumes left by Packer builds#2165

Open
jfreeland wants to merge 1 commit into
developfrom
fix/ebs-packer
Open

fix(ci): clean up dangling EBS volumes left by Packer builds#2165
jfreeland wants to merge 1 commit into
developfrom
fix/ebs-packer

Conversation

@jfreeland
Copy link
Copy Markdown
Contributor

Summary

Packer's stage-1 amazon-ebssurrogate builds detach temporary volumes before terminating the build instance, leaving them in available state and accumulating cost. This PR tags those volumes with packerExecutionId during the Packer run, then sweeps any matching unattached volumes in each workflow's cleanup hooks.

While doing this, I noticed ami-release-nix-single.yml was running its cleanup with leftover PROD_AWS_ROLE credentials from the earlier staging→prod rotation, meaning the existing instance-termination cleanup was silently no-op'ing against the wrong account. Added a dedicated DEV_AWS_ROLE re-auth step before cleanup to fix this.

@jfreeland jfreeland requested review from a team as code owners May 25, 2026 20:48
@jfreeland jfreeland added this pull request to the merge queue May 26, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 26, 2026
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.

2 participants