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

Configurable environment types for Ami tag management #259

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

brunoasr
Copy link
Contributor

Summary

Ami tag management aims to promote Amis through successive environments, like dev -> stage -> prod. This change enables a list of environments to be configurable.

Test Plan

@vahidhashemian vahidhashemian marked this pull request as ready for review February 26, 2024 17:10
@vahidhashemian vahidhashemian requested a review from a team as a code owner February 26, 2024 17:10
resp.images().forEach(image -> {
if (ZonedDateTime.parse(image.creationDate(), DateTimeFormatter.ISO_ZONED_DATE_TIME).isAfter(cutDate)) {
/*if (ZonedDateTime.parse(image.creationDate(), DateTimeFormatter.ISO_ZONED_DATE_TIME).isAfter(cutDate)) {*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to keep commented code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. It was an initial requirement that only images newer than 180 days were used in the AMI promotion process. But during this early stage, Eric asked that this constraint be temporarily suspended.

@vahidhashemian vahidhashemian merged commit 0ad29fc into pinterest:master Feb 26, 2024
1 check passed
@brunoasr brunoasr deleted the configurable_envtypes branch September 8, 2024 01:02
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