Skip to content

image: add deprecation and tag declaration to ami-import - #380

Merged
martinpitt merged 2 commits into
amutable:mainfrom
martinpitt:ami-properties
Nov 3, 2026
Merged

martinpitt merged 2 commits into
amutable:mainfrom
martinpitt:ami-properties

Conversation

@martinpitt

@martinpitt martinpitt commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

See individual commits. Necessary for introducing some house-keeping to the ever-growing pile of AMIs that we build. 🧹 🏷️

Tested end-to-end with building our example image, uploading with tag and deprecation date, and checking with aws describe-snapshots and describe-images.

Any AMI build ages very quickly in today's world. This is especially
true for PR CI builds, but even for nightlies. Add a `--deprecate-days`
option to set EC2's deprecation time.

This allows an automatic cleanup job to actually deregister deprecated
AMIs.

Signed-off-by: Martin Pitt <martin@amutable.com>
Add a repeatable `--tag` that sets more tags than the default `Name`
when creating an image. This is useful for categorizing them
(architecture, release series, etc.), as well as writing IAM policies
that restrict operations to AMIs with particular tags.

Signed-off-by: Martin Pitt <martin@amutable.com>
@martinpitt
martinpitt enabled auto-merge (rebase) November 3, 2026 11:45
@martinpitt
martinpitt merged commit 53cdcb6 into amutable:main Nov 3, 2026
5 checks passed
@martinpitt
martinpitt deleted the ami-properties branch November 3, 2026 11:49
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