Skip to content

Ignore Amazon Linux preview AMIs in get_latest_ami_id - #72520

Open
vincbeck wants to merge 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/exclude-preview-amis-from-get-latest-ami-id
Open

Ignore Amazon Linux preview AMIs in get_latest_ami_id#72520
vincbeck wants to merge 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/exclude-preview-amis-from-get-latest-ami-id

Conversation

@vincbeck

@vincbeck vincbeck commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

get_latest_ami_id() returns the newest Amazon owned AMI whose description matches "Amazon Linux*". As soon as a preview AMI for an unreleased Amazon Linux generation is published it is newer than every released image, so the helper starts handing that preview image to example_ec2 and example_ssm.

Filter out any image whose name or description mentions "preview" so the helper keeps returning a released image, and drop the stale comment about the Amazon Linux 2022 rename.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

get_latest_ami_id() returns the newest Amazon owned AMI whose description
matches "Amazon Linux*". As soon as a preview AMI for an unreleased Amazon
Linux generation is published it is newer than every released image, so the
helper starts handing that preview image to example_ec2 and example_ssm.

Preview images are not supported by every AWS service. SSM Patch Manager for
instance has no patch baseline operating system for them, so tooling that
patches the instances these system tests start fails for as long as one of
them is running.

Filter out any image whose name or description mentions "preview" so the
helper keeps returning a released image, and drop the stale comment about the
Amazon Linux 2022 rename.
@vincbeck
vincbeck requested a review from o-nikolas as a code owner September 4, 2026 15:09
@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants