-
Notifications
You must be signed in to change notification settings - Fork 104
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
Error when setting VPC as parent of EKS cluster #1209
Comments
Update: Perhaps this is a bug in the |
Thanks for reaching out @harryttd. I think the issue here is that the eks.Cluster resource depends on the output of the VPC in it's creation. It is a bit unfortunate that the error message doesn't make that clear though. In general, you shouldn't use the |
Thanks for your reply @mjeffryes and for the link. I see that it says:
It's interesting because as I mentioned earlier, I had no issue setting the parent in older package versions. Creating a component resource for the VPC and Cluster in my case would be overkill. It's nice to keep them top level and to see a clearly delineated relationship tree in Pulumi logs. I don't see why the cluster should not be able to wait for the outputs of the VPC like it has up until whatever version exactly this behavior changed. In fact here's a Pulumi repo example of an ECS cluster setting the VPC as the parent. Not sure why an EKS cluster should be any different. |
Setting VPC as the parent actually makes the Cluster a child resource so it's not at the top level anymore. If you want to keep both resources at the top-level, removing the |
What happened?
I'm trying to create
awsx.ec2.VPC
andeks.Cluster
resources. For theparent
option inResourceOptions
of the cluster, i set it to the vpc. Pulumi doesn’t like this and i get the runtime detected promises were still active error (see below). Removing theparent
option avoids the error. This did not use to happen in older versions of awsx. I'm upgrading to v2.4.0 from v0.40.0.Error:
Example
Output of
pulumi about
Additional context
package.json:
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: