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

aws_sns_topic subscription is getting deleted abruptly #64

Open
hariprasath91 opened this issue May 19, 2023 · 0 comments
Open

aws_sns_topic subscription is getting deleted abruptly #64

hariprasath91 opened this issue May 19, 2023 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@hariprasath91
Copy link

Describe the Bug

When we are trying to delete a identity in amazon , we are deleting the notification relation as well .
So when we does it , the sns subscription is also getting deleted.

resource "aws_sns_topic_subscription" "user_updates_email_target" {
topic_arn = aws_sns_topic.test_topic.arn
protocol  = "email"
endpoint  = "[email protected]"
}

resource "aws_sesv2_email_identity" "_example_com" {
 identity = "example.com"
}

resource "aws_ses_identity_notification_topic" "_example_com" {
 topic_arn = aws_sns_topic.test_topic.arn
 notification_type = "Bounce"
 identity = aws_sesv2_email_identity._example_com.identity
 include_original_headers = true
}

Expected Behavior

WE dont want the sns topic subscription to be deleted when we delete the sns for the specific domain.

Steps to Reproduce

Delete the resource - resource "aws_ses_identity_notification_topic" "_example_com
where the relevant subscription gets deleted.

Screenshots

No response

Environment

  • OS: Linux
    -Terraform version- v1.2.3

Additional Context

No response

@hariprasath91 hariprasath91 added the bug 🐛 An issue with the system label May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant