AWS sandbox image versions cleaned up
On AWS, Alien now retires sandbox image versions that a release replaced, so an image stays under AWS's limit of 50 versions per image.
- Retire: a replaced version stays active for at least 60 minutes, and the most recent one always stays. Then no new sandbox starts on it, while running and suspended sandboxes keep going.
- Delete: a retired version is deleted 8.5 hours later.
- Permission: retiring needs
lambda:UpdateMicrovmImageVersion, now part ofsandbox/provision. A stack set up before it keeps every version and logs a warning every 6 hours. After 50 versions, its next sandbox image update fails. The customer's admin reruns initial setup to add the permission.