-
Notifications
You must be signed in to change notification settings - Fork 82
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
nodeGroupOptions.extraNodeSecurityGroups
throws "Expected an ID for for instanceProfile:InstanceProfile"
#1584
Comments
I solved the problem by replacing I figured this out by comparing pulumi-eks/nodejs/eks/nodegroup.ts Line 810 in e9b446a
to pulumi-eks/nodejs/eks/nodegroup.ts Line 1279 in e9b446a
It looks like while migrating from |
Hey @cshen-dev, so sorry you're running into this! Thank you so much for providing a great repro! |
Quick update from my side, I was able to reproduce the issue using your example. Thanks a lot! |
I was able to in-point it to the following bug in pulumi/pulumi: pulumi/pulumi#13802 The cluster's This trips up the provider implementation and ultimately makes it go down the wrong branch in this if/else block here: pulumi-eks/nodejs/eks/cluster.ts Lines 171 to 176 in 6fd7126
The instanceProfileName argument is not an Input<string> that's defined, it's actually an Input<string | undefined> that resolves to undefined.Wrapping the nested resource reference, the extraNodeSecurityGroups in this case, in an output works around this bug.I'll see if we can work around this within the provider implementation. |
While this is technically not new behavior, it didn't exist in the Node.js implementation of v2 of the provider because it didn't use the MLC tech. It was just a regular node library. This was an issue for the other languages in v2 as well. In v3 the Node.js implementation is also susceptible to this bug now and therefore regressed. |
We're expecting pulumi/pulumi#13802 to get tackled later next week. Given this I'm checking if there's a good stop gap we can put into pu-eks for now |
What happened?
When I migrate to @pulumi/eks v3, this particular field
nodeGroupOptions.extraNodeSecurityGroups
gives me a hard time.It keeps reporting something like the below:
Example
Output of
pulumi about
Additional context
By removing
extraNodeSecurityGroups: [securityGroup],
, everything will be deployed as expected!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: