-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix: Use amazon
alias for worker ami owner instead of owner id
#1038
fix: Use amazon
alias for worker ami owner instead of owner id
#1038
Conversation
amazon
alias for worker ami oner instead of owner id
@terraform-aws-modules/triage-supporters Someone can help me review this ? I'm not a ninja of AMI filtering, so I would like have your feedback on this change. I don't know why we're using the AWS owner ID instead of alias since the beginning. I probably missed something. |
amazon
alias for worker ami oner instead of owner idamazon
alias for worker ami owner instead of owner id
I usually debug this is by running |
The Amazon EKS node images from the container team are not in the same account as standard images from the EC2 amazon linux team. Although it appears that they both have the amazon Interesting that account aliases are not a one-to-one mapping to account IDs. For example grab the, at time of writing, latest image for Amazon Linux 2 AMI (HVM) SSD 64-bit x86 (in eu-west-1 it's
The current EKS 1.17 AMZN2 image in eu-west-1 is
Existing module query:
New query:
Looks good to me. |
Thanks @dpiddock. |
This doesn't actually resolve #480, because for some reason, the account that owns the EKS AMIs in ap-east-1 has no alias whatsoever:
That being the case, I don't think there's any way to really fix this other than either hard-coding a default list of multiple owner IDs, hard-coding a default mapping between regions and owner ids, or just expecting the module user to figure it out on their own. Or, I guess, bugging Amazon to add an account alias to 800184023465. Just to be clear, |
Hummm... Maybe the right way to fix this is to use the SSM datasource to get the AMI ID. See https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html. But I don't know how to do that without breaking all the AMI filtering logic in this module. |
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. |
PR o'clock
Description
Use
amazon
alias for for worker ami owner instead of setting the owner id. Those owner ids are different by region, but the alias remain the same.Resolves #1037
Resolves #480
#824
#480
Checklist