-
Notifications
You must be signed in to change notification settings - Fork 16
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
Upgrade Nodegroup with custom AMI fails #1747
Comments
Indeed, looks like this error comes from EKS: https://repost.aws/knowledge-center/eks-managed-node-group-update Your analysis is very interesting. It would really help us maintainers if you could include a small self-contained repro of the problem. I tried spending some time building a repro but it's evading me. The way the eks.Cluster is setup that's implied by your snippet is highly relevant I suspect. |
@t0yv0 here is a repro https://github.com/btuffreau/pulumi-aws-native-1747 |
Thanks for the repro @btuffreau, I'll take a look! |
Hey @btuffreau, thanks a lot for the great repro. I was able to reproduce the issue right away! The bug stems from AWS CloudControl incorrectly including I've opened a bug with AWS: aws-cloudformation/cloudformation-coverage-roadmap#2151. Until that's fixed, you could try using the |
Thanks! I'm good with the suggested workaround for now, I'll re adjust if that becomes problematic. |
What happened?
I'm using a launch template with a custom ami, the initial provisioning works fine, but whenever I pass a new ami id to the launch template the nodegroup update fails like so:
Example
I stripped my original code but I hope it's obvious enough, just switching the image_id from the
LaunchTemplate
would cause this issueOutput of
pulumi about
Additional context
I have a feeling this happens because the response from AWS are being kept as ouputs, such as
releaseVersion
.Then the provider will reuse them but should not because these are not correct values when dealing with a launch template with a custom AMI.
Another thing is that the error refers to
kubernetesVersion
but it's not actually a property used on the pulumi side, it's probably mapped toversion
.Doing the update with the CLI is very simple and does not require recreating anything:
As a workaround, you can always recycle the whole
Nodegroup
upon change of the launch template, but that's not very clean (and much slower).Also tried using the transforms API but did not succeed.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: