-
Notifications
You must be signed in to change notification settings - Fork 7
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
[stack tag] Using retainOnDelete
for stack tag resource in Pulumi Service provider causes you to get stuck.
#392
Comments
@MitchellGerdisch can't you import it and the delete it? What is the handling you would expect? |
The use case is I have a stack that configures the stack tag for itself. Importing and deleting is not really a viable option here given the use-case since the stack may be destroyed and upped multiple times - say due to a schedule that destroys at night and deploys in the morning. |
Unfortunately, I don't think this is possible currently. This sounds like an instance of pulumi/pulumi#3388. Since the tag and value itself is the uniquely identifying property of the |
I think this could be implemented as Mitch suggests - by adjusting CreateStackTag API to not fail when stack already exists, which I think is reasonable. This is more of an issue for pulumi service itself, but this should be open until it's verified to work. |
What happened?
Using the code provided below and executing the following steps causes one to get stuck:
pulumi up
pulumi destroy
retainOnDelete
optionpulumi up
Example
See above
Output of
pulumi about
CLI
Version 3.128.0
Go Version go1.22.5
Go Compiler gc
Plugins
KIND NAME VERSION
language nodejs unknown
resource pulumiservice 0.23.2
Host
OS darwin
Version 13.6.9
Arch x86_64
Backend
Name pulumi.com
Dependencies:
NAME VERSION
@pulumi/pulumi 3.129.0
@pulumi/pulumiservice 0.23.2
@types/node 18.19.45
typescript 5.5.4
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: