Compare commits

..

1 Commits

Author SHA1 Message Date
Timothy J. Aveni 70797543e4 Require published AMI role tag 2026-06-27 23:19:18 -07:00
+1 -4
View File
@@ -146,6 +146,7 @@ const listImages = (state) => {
const filters = [
"Name=state,Values=available",
`Name=tag:Project,Values=${state.name}`,
"Name=tag:Role,Values=published-ami",
];
if (state.architecture) {
filters.push(`Name=tag:Architecture,Values=${state.architecture}`);
@@ -163,10 +164,6 @@ const listImages = (state) => {
]);
return (result?.Images ?? [])
.filter((image) => {
const tags = amiTags(image);
return tags.Role === "published-ami" || Boolean(tags.RootSnapshotId || tags.NixSnapshotId);
})
.sort((a, b) => String(b.CreationDate ?? "").localeCompare(String(a.CreationDate ?? "")));
};