-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/sns_topic_subscription - recreate on topic deletion + validations #14101
r/sns_topic_subscription - recreate on topic deletion + validations #14101
Conversation
just noticed #10496 exists. let me know if i should close mine or rebase after the aforementioned PR is merged |
#10496 has been merged, so this is ready for rebase |
e40e7c4
to
8a9b2e2
Compare
rebased + reran tests |
@@ -152,11 +158,11 @@ func resourceAwsSnsTopicSubscriptionUpdate(d *schema.ResourceData, meta interfac | |||
} | |||
|
|||
func resourceAwsSnsTopicSubscriptionRead(d *schema.ResourceData, meta interface{}) error { | |||
snsconn := meta.(*AWSClient).snsconn | |||
conn := meta.(*AWSClient).snsconn | |||
|
|||
log.Printf("[DEBUG] Loading subscription %s", d.Id()) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call ListSubscriptionsByTopic
first?
See #9645 (comment).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank, Added.
152d0c4
to
0b80c80
Compare
rerun tests:
|
0b80c80
to
5fcb44e
Compare
9282695
to
a2e98c7
Compare
|
a2e98c7
to
85c32ba
Compare
@DrFaust92 Thank you for this pull request! The |
74d5d88
to
335b2ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
--- PASS: TestAccAWSSNSTopicSubscription_email (25.45s)
--- PASS: TestAccAWSSNSTopicSubscription_disappears_topic (27.48s)
--- PASS: TestAccAWSSNSTopicSubscription_filterPolicy (65.17s)
--- PASS: TestAccAWSSNSTopicSubscription_rawMessageDelivery (67.47s)
--- PASS: TestAccAWSSNSTopicSubscription_redrivePolicy (67.72s)
--- PASS: TestAccAWSSNSTopicSubscription_deliveryPolicy (67.79s)
--- PASS: TestAccAWSSNSTopicSubscription_basic (71.10s)
--- PASS: TestAccAWSSNSTopicSubscription_disappears (84.14s)
--- PASS: TestAccAWSSNSTopicSubscription_autoConfirmingEndpoint (87.73s)
--- PASS: TestAccAWSSNSTopicSubscription_autoConfirmingSecuredEndpoint (124.39s)
--- PASS: TestAccAWSSNSTopicSubscription_firehose (144.02s)
This has been released in version 3.34.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
Closes #9645
Release note for CHANGELOG:
Output from acceptance testing: