Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add include_deprecated=true to all recipes #249

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

singholt
Copy link
Contributor

@singholt singholt commented May 30, 2024

Summary

This PR adds include_deprecated=true to the AMI recipes.

During an AMI build, Packer uses the name of the Amazon Linux source AMI we defined in release-*.auto.pkvars.hcl. It uses the most recent AMI that has the given name. In AL1 recipe, we added included_deprecated=true since the AL1 base AMIs are deprecated.

This PR adds the same flag to all other recipes, so that whenever the base AMI is deprecated, Packer is still able to find and use it. It doesn't change anything functionally, but is more of a safety net - for example, when Amazon Linux deprecates the AL2 base AMI in the future, ECS AMI builds will not be impacted.

Implementation details

Updated all AMI recipes with include_deprecated=true like it is in the AL1 recipe today.

Testing

New tests cover the changes: no

Description for the changelog

Enhancement: Add include_deprecated=true to all AMI recipes.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

During an AMI build, Packer uses the name of the Amazon Linux source AMI defined in release-{ami-family}.auto.pkvars.hcl
It uses the most recent AMI that has the given name. In AL1 recipe, we added included_deprecated=true since the AL1 base AMIs are deprecated.

This commit adds the same flag to all other recipes, so that whenever the base AMI is deprecated, Packer is able to still use it.
@singholt singholt marked this pull request as ready for review May 30, 2024 18:09
@singholt singholt requested a review from a team as a code owner May 30, 2024 18:09
@singholt singholt merged commit 0a6f3bb into aws:main May 30, 2024
2 checks passed
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.

3 participants