terraform-aws-eks icon indicating copy to clipboard operation
terraform-aws-eks copied to clipboard

fix: Update node_iam_role_arns locals to check for Windows Managed Node Groups

Open aamoctz opened this issue 2 years ago β€’ 14 comments

Description

This change adds additional checks for platform == "windows" on both local.node_iam_role_arns_non_windows and local.node_iam_role_arns_windows.

The additional validation in local.node_iam_role_arns_windows ensures that the correct configurations are added to aws-auth.

The additiional validation in local.node_iam_role_arns_non_windows ensures that terraform does not also create an extra incorrect entry in aws-auth for the node group.

To support this change, the eks_managed_node_group module has a new output (platform)

Motivation and Context

Resolves the issue described in this comment from #2350

Breaking Changes

No breaking changes found during my testing.

How Has This Been Tested?

  • [] I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • [x] I have tested and validated these changes using one or more of the provided examples/* projects
  • [x] I have executed pre-commit run -a on my pull request

aamoctz avatar Feb 15 '23 19:02 aamoctz

πŸ‘

hp197 avatar Feb 16 '23 10:02 hp197

can someone approve this :-)

noamgreen avatar Feb 28 '23 13:02 noamgreen

This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days

github-actions[bot] avatar Mar 31 '23 00:03 github-actions[bot]

bump

hp197 avatar Mar 31 '23 06:03 hp197

This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days

github-actions[bot] avatar May 01 '23 00:05 github-actions[bot]

bump

aamoctz avatar May 05 '23 17:05 aamoctz

I would also greatly appreciate a review of this. Thanks!

mcmagi avatar May 18 '23 19:05 mcmagi

I've nearly submitted this exact same code in a different PR today. Even with today's master, the changes are the same. It would be great to get this reviewed and pulled in so managed windows node groups can be functional instances.

jxn avatar May 23 '23 14:05 jxn

Can we please get this reviewed and merged? It's really needed!

saedx1 avatar May 23 '23 14:05 saedx1

how has this been tested and validated?

bryantbiggs avatar May 31 '23 18:05 bryantbiggs

+1 this PR would benefit us greatly

mlschindler avatar Jun 04 '23 14:06 mlschindler

how has this been tested and validated?

PR was tested using the eks_managed_node_group example module, with some modifications to use existing VPC related resources since those are managed elsewhere within my org. I do not have access to a sandbox account so that's the closest I can get.

aamoctz avatar Jun 12 '23 22:06 aamoctz

This looks good in some limited testing, given the problems this is currently causing I think it should be pulled in.

sean-redmond avatar Jun 13 '23 11:06 sean-redmond

+1 Can we please get this merged ?

sankalpkale88 avatar Jun 22 '23 12:06 sankalpkale88

This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days

github-actions[bot] avatar Jul 23 '23 00:07 github-actions[bot]

Would be really nice to see this merged.

sean-redmond avatar Jul 24 '23 14:07 sean-redmond

+1 Would be great to see this merged.

kirillowen avatar Jul 24 '23 15:07 kirillowen

This PR is included in version 19.16.0 :tada:

antonbabenko avatar Aug 03 '23 23:08 antonbabenko

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[bot] avatar Sep 03 '23 02:09 github-actions[bot]