Open nemreid opened 2 months ago
I'm sorry this is not working as expected for you. The workaround would be removing archive_policy from sources and executing pulumi up to detach the archive policy, followed by pulumi destroy to delete. This is indeed inconvenient.
I've filed a request in https://github.com/hashicorp/terraform-provider-aws/issues/38885 - the most expedient way for pulumi-aws to gain this feature is having it implemented in the upstream provider. Scanning the code there does not seem to be any functionality for this at the moment.
Thank you, I have upvoted your terraform issue. From personal experience, I know changes there can take a while, but I hope we can make the pulumi experience better eventually!
Describe what happened
Pulumi throws an error when trying to delete an SNS topic with an active archive policy.
Although this is intended AWS behavior to prevent unintended deletion of messages, it makes it impossible to manage this type of resource without manual intervention in every environment.
It should be possible to have some kind of override to allow deletion (by unsetting the archive_policy under the hood) for use in non-production environments.
Sample program
pulumi up -y
pulumi down -y
Log output
Affected Resource(s)
sns.Topic
withfifo_topic=True
andarchive_policy='{"MessageRetentionPeriod": "<int>"}'
Output of
pulumi about
[redacted due to presence of internal packages]
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).