Skip to content
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

[Enhancement]: Simplify deleting aws_sns_topic with archive_policy #38885

Open
t0yv0 opened this issue Aug 15, 2024 · 1 comment
Open

[Enhancement]: Simplify deleting aws_sns_topic with archive_policy #38885

t0yv0 opened this issue Aug 15, 2024 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/sns Issues and PRs that pertain to the sns service.

Comments

@t0yv0
Copy link
Contributor

t0yv0 commented Aug 15, 2024

Description

Per AWS documentation deleting SNS topics with archive_policy is not allowed.

To avoid accidental message deletions, you can not delete a topic with an active message archive policy. The topic's message archive policy must be deactivated before the topic can be deleted. When you deactivate a message archive policy, Amazon SNS deletes all of the archived messages. When deleting a topic, subscriptions are removed, and any messages in transit may not be delivered.

This makes it cumbersome to manage deletion of such resources with TF. Consider implementing a feature that automates deactivating the archive policy on deletion (possibly as an opt-in and not default behavior).

Affected Resource(s) and/or Data Source(s)

  • aws_sns_policy

Potential Terraform Configuration

N/A

References

N/A

Would you like to implement a fix?

No

@t0yv0 t0yv0 added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 15, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/sns Issues and PRs that pertain to the sns service. label Aug 15, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 15, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/sns Issues and PRs that pertain to the sns service.
Projects
None yet
Development

No branches or pull requests

2 participants