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
Copy link
Copy Markdown
Member

@marmijo marmijo commented May 19, 2026

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>

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

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
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 092316d to e1fe762 Compare May 19, 2026 23:43
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.

1 participant