aws-samples / aws-samples/remote-swe-agents

ec2-gc: DeleteSnapshotInMap is failing

Open
#171 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
243
Forks
50
Avg merge
1h 19m
Merged PRs (30d)
24

Description

It seems we must delete a snapshot only after the corresponding ami is released.

> {
"Error": "Ec2.Ec2Exception",
"Cause": "The snapshot snap-0xxxxxxxxxxxx is currently in use by ami-xxxxxxxxxxxx (Service: Ec2, Status Code: 400, Request ID: 25aa2) (SDK Attempt Count: 1)"
}

![Image](https://github.com/user-attachments/assets/39bf630d-3d91-4e4e-8a45-d3164770fde9)

Contributor guide

Open the contributing guide

Research direction

Start at the DeleteSnapshotInMap entry point and trace how the AMI and snapshot cleanup requests are ordered. Reproduce the EC2 error if possible, then verify that the AMI is released before its corresponding snapshot is deleted and that the reported in-use failure no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.