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

feat: Search for Windows or Linux AMIs only if they are needed #1371

Merged

Conversation

barryib
Copy link
Member

@barryib barryib commented May 19, 2021

PR o'clock

Description

This will add support to search for Windows (or Linux) AMI only if they are needed.

Checklist

Copy link
Sponsor

@dbirks dbirks left a comment

Choose a reason for hiding this comment

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

Nice, thank you! Just ran a plan with this branch, and it doesn't error out, even though there's not a 1.20 windows ami yet. 🎉

BARRY Thierno Ibrahima (Canal Plus Prestataire) and others added 2 commits May 19, 2021 16:38
@barryib barryib force-pushed the filter-ami-for-needed-platforms branch from 7891780 to 32cbd87 Compare May 19, 2021 14:42
@barryib barryib merged commit 06e9078 into terraform-aws-modules:master May 19, 2021
@barryib barryib deleted the filter-ami-for-needed-platforms branch May 19, 2021 14:47
@barryib
Copy link
Member Author

barryib commented May 19, 2021

v16.1.0 is released.

barryib added a commit to barryib/terraform-aws-eks that referenced this pull request May 20, 2021
@brettcave
Copy link

This PR introduced a bug that breaks if Windows nodes are used:

06e9078#diff-2fdb488192d2afd49fb090fcc8bd32fd3af72bcb789420915e78d6406ef9e2e4R19

worker_has_linux_ami   = length([for x in concat(var.worker_groups, var.worker_groups_launch_template) : x if lookup(x, "platform", "linux") == "linux"]) > 0
  worker_has_windows_ami = length([for x in concat(var.worker_groups, var.worker_groups_launch_template) : x if lookup(x, "platform", "linux") == "windows"]) > 0

@barryib
Copy link
Member Author

barryib commented May 28, 2021

This PR introduced a bug that breaks if Windows nodes are used

@brettcave What do you mean by "it brakes" ? Can you please share your error and configuration ?

@brettcave
Copy link

This PR introduced a bug that breaks if Windows nodes are used

@brettcave What do you mean by "it brakes" ? Can you please share your error and configuration ?

#1410

ArchiFleKs pushed a commit to ArchiFleKs/terraform-aws-eks that referenced this pull request Jun 1, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.