-
Notifications
You must be signed in to change notification settings - Fork 158
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
Pulumi doesn't fully check for dependent objects? #2948
Comments
@mausch, are the 2 network interfaces managed by Pulumi? Is there a dependency relationship in Pulumi with the 2 network interfaces depending on the security group? If so, when doing a |
Hi Justin! I think there's a misunderstanding about what the issue is. The point is, if AWS can immediately say that the resource cannot be deleted and the reason, why does it take Pulumi ten minutes to do the same? |
We possibly could, but firstly it would require scanning your entire cloud account for dependencies on every update which would be horrifically slow, secondly I'm not actually sure that every cloud provider even providers the APIs to do this sort of listing of all possible resources, and thirdly even if they did it's a significant increase in what is required to support a cloud API as a Pulumi provider. For all those reasons we only track what's in state, and rely on the cloud provider to error if state has drifted as it can do it more reliably and faster. |
This seems to be more of a request for enhanced behavior in the AWS provider. Therefore, I'm going to transfer the issue to the |
Pretty sure that not every single object type in AWS can depend on a security group. |
Seeing same. 15minutes for this:
Diagnostics: pulumi:pulumi:Stack (main-dev): Resources: Duration: 15m6s What happening in those 15minutes? |
What happened?
I tried deleting an AWS security group with Pulumi. This security group has 2 network interfaces associated so it can't be deleted directly.
If I go to the AWS console and try to delete the security group, it tells me right away that it can't be deleted and why (with links to the network interfaces)
When trying to delete it with Pulumi, it takes about 10 minutes to fail saying it has dependent objects and it doesn't say what the dependencies are.
This seems related to pulumi/pulumi#8005 (comment) but the focus there seems to be about failing fast (which is valid and would help here) whereas it seems to me that Pulumi just isn't checking dependencies correctly (at least in this specific case)
Example
As described above
Output of
pulumi about
Additional context
No response
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: