Skip to content

mantle/ore/aws: add ensure-public to manage AMI visibility#4562

Open
marmijo wants to merge 1 commit into
coreos:mainfrom
marmijo:add-ensure-public
Open

mantle/ore/aws: add ensure-public to manage AMI visibility#4562
marmijo wants to merge 1 commit into
coreos:mainfrom
marmijo:add-ensure-public

Conversation

@marmijo

@marmijo marmijo commented May 19, 2026

Copy link
Copy Markdown
Member

AWS enforces a 2-year deprecation date on all public AMIs and removes their public sharing permission after 6+ months of inactivity past the deprecation date. This silently breaks OpenShift customers on older versions who rely on those AMIs to scale cluster nodes.

Add ore aws ensure-public, which scans all production AMIs (tagged production=true) in a region, checks their launch permission, and restores any that have gone private. A single AMI can also be targeted directly via --ami.

See: https://redhat.atlassian.net/browse/COS-3842

Assisted-by: Claude <Sonnet 4.6>

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces the ensure-public command to the ore aws tool, designed to maintain the public accessibility of production RHCOS AMIs that AWS might automatically privatize due to deprecation. It also extends the AWS API client with methods for listing production images, checking public status, and restoring launch permissions. Feedback includes addressing potential nil pointer dereferences when accessing image metadata and refining the wording of deprecation date labels for clarity.

Comment thread mantle/cmd/ore/aws/ensure-public.go Outdated
Comment thread mantle/cmd/ore/aws/ensure-public.go

@Rolv-Apneseth Rolv-Apneseth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some very minor things but otherwise LGTM

Comment thread mantle/cmd/ore/aws/ensure-public.go
Comment thread mantle/platform/api/aws/images.go Outdated
Comment thread mantle/platform/api/aws/images.go
@marmijo marmijo force-pushed the add-ensure-public branch from 1b43e5c to 84b6ffd Compare June 16, 2026 21:40
AWS enforces a 2-year deprecation date on all public AMIs and removes
their public sharing permission after 6+ months of inactivity past the
deprecation date. This silently breaks OpenShift customers on older
versions who rely on those AMIs to scale cluster nodes.

Add `ore aws ensure-public`, which scans all production AMIs
(tagged production=true) in a region, checks their launch permission,
and restores any that have gone private. A single AMI can also be
targeted directly via --ami.

Assisted-by: Claude <Sonnet 4.6>
@marmijo marmijo force-pushed the add-ensure-public branch from 84b6ffd to 6f3d876 Compare June 16, 2026 23:07

@Rolv-Apneseth Rolv-Apneseth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Rolv-Apneseth

Copy link
Copy Markdown
Member

Oh, do we need to worry about outages in regions like the one affecting the garbage-collection jobs: coreos/fedora-coreos-tracker#2163

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