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

Dynamic AMI selection: fix architecture filter #283

Merged

Conversation

brunoasr
Copy link
Contributor

@brunoasr brunoasr commented Jul 15, 2024

Summary

Fixes architecture filter in the dynamic AMI selection.

Test Plan

@brunoasr brunoasr changed the title Dynamic AMI selection: fix architecture, add volume size filter Dynamic AMI selection: fix architecture filter Jul 16, 2024
@@ -98,7 +97,7 @@ public List<Ami> getAmiList(Map<String, String> filter) {
DescribeImagesResponse resp = ec2Client.describeImages(builder.build());
if (resp.hasImages() && !resp.images().isEmpty()) {
// The limitation of images newer than 180 days is temporarily suspended
//ZonedDateTime cutDate = ZonedDateTime.now().minusDays(180);
// ZonedDateTime cutDate = ZonedDateTime.now().minusDays(180);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does that mean we are including all the images now? What is the rationale behind 180 days?
If we want to add a threshold like that I would suggest making it a configuration so it can be set as needed without having to change code.

@vahidhashemian vahidhashemian marked this pull request as ready for review July 30, 2024 00:53
@vahidhashemian vahidhashemian requested a review from a team as a code owner July 30, 2024 00:53
@vahidhashemian vahidhashemian merged commit bc90bfc into pinterest:master Jul 30, 2024
1 check passed
@brunoasr brunoasr deleted the brunoasr/ami_volume_size_filter branch October 1, 2024 19:25
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