-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Support email sns_topic_subscription #12286
Comments
I think this should be possible now as the sns api has a new attribute:
As AWS now returns an ARN, I guess this feature should be possible and easy to implement. |
So with http protocol/endpoints, TF does not support ones that don't have auto confirmation. Nevertheless, if you have one already created, TF imports it fine. This is because http(s) endpoints are not explicitly blacklisted like the email protocol. So the only change needed to support this functionality seems to be to remove that blacklist. |
Seems to me like leveraging the |
This has been released in version 3.30.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
Please support email protocol for sns_topic_subscription. I understand that creation is not possible (as per note in docs, see below in references). But existing topics can be imported (that works already). The use case is - for TF destroy and for monitoring changes (with terraform plan - vs any modifications done outside of TF) and applying changes that don't need resource re-creation. If the subscription is in non-confirmed state, then import should fail, preventing inability of TF to destroy or modify unconfirmed resource.
I understand that this is limited functionality, but still very valuable.
New or Affected Resource(s)
sns_topic_subscription
Potential Terraform Configuration
References
#7782
Docs: https://www.terraform.io/docs/providers/aws/r/sns_topic_subscription.html
The text was updated successfully, but these errors were encountered: