Skip to content

feat: cleanup ebs snapshots from testinfra ami's#2098

Open
jfreeland wants to merge 2 commits into
developfrom
feat/cleanup-volumes
Open

feat: cleanup ebs snapshots from testinfra ami's#2098
jfreeland wants to merge 2 commits into
developfrom
feat/cleanup-volumes

Conversation

@jfreeland

@jfreeland jfreeland commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Delete the EBS snapshots backing testing AMI's that are built from the testinfra workflow. I think we're not deleting the snapshots when we're done and this has to be done separately in AWS.

@jfreeland jfreeland requested review from a team as code owners March 30, 2026 13:25
Copilot AI review requested due to automatic review settings March 30, 2026 13:25

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

Adds cleanup logic to the Testinfra AMI build workflow to remove AMI artifacts created during the run, aiming to prevent lingering AWS resources (and associated costs) after the workflow completes.

Changes:

  • Fetch EBS snapshot IDs associated with the “stage 2” AMIs created by the workflow.
  • Deregister stage 2 AMIs and attempt to delete their backing EBS snapshots.

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

Comment thread .github/workflows/testinfra-ami-build.yml
Comment thread .github/workflows/testinfra-ami-build.yml
Comment thread .github/workflows/testinfra-ami-build.yml
@jfreeland jfreeland changed the title feat: cleanup ebs volumes from testinfra ami's feat: cleanup ebs snapshots from testinfra ami's Mar 30, 2026
@jfreeland jfreeland marked this pull request as draft March 30, 2026 13:38
@jfreeland jfreeland marked this pull request as ready for review June 16, 2026 00:19
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