-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add consistency check during CreateTopic to handle ABAC vs. eventual consistency issues #30432
Conversation
…ABAC vs. eventual consistency issues
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
I can't seem to get past the one error I'm receiving in here in the CI run. Could I get a bit of help? I see that other pipelines from other PRs are also generating this error recently, so might it have something to do with recent commits? Thanks much, ;P mn |
Looks like it resolved upstream. Ready for review. |
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 🚀.
% make testacc TESTARGS='-run=TestAccSNSTopic_' PKG=sns ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/sns/... -v -count 1 -parallel 3 -run=TestAccSNSTopic_ -timeout 180m
=== RUN TestAccSNSTopic_basic
=== PAUSE TestAccSNSTopic_basic
=== RUN TestAccSNSTopic_disappears
=== PAUSE TestAccSNSTopic_disappears
=== RUN TestAccSNSTopic_name
=== PAUSE TestAccSNSTopic_name
=== RUN TestAccSNSTopic_namePrefix
=== PAUSE TestAccSNSTopic_namePrefix
=== RUN TestAccSNSTopic_tags
=== PAUSE TestAccSNSTopic_tags
=== RUN TestAccSNSTopic_policy
=== PAUSE TestAccSNSTopic_policy
=== RUN TestAccSNSTopic_withIAMRole
=== PAUSE TestAccSNSTopic_withIAMRole
=== RUN TestAccSNSTopic_withFakeIAMRole
=== PAUSE TestAccSNSTopic_withFakeIAMRole
=== RUN TestAccSNSTopic_withDeliveryPolicy
=== PAUSE TestAccSNSTopic_withDeliveryPolicy
=== RUN TestAccSNSTopic_deliveryStatus
=== PAUSE TestAccSNSTopic_deliveryStatus
=== RUN TestAccSNSTopic_NameGenerated_fifoTopic
=== PAUSE TestAccSNSTopic_NameGenerated_fifoTopic
=== RUN TestAccSNSTopic_Name_fifoTopic
=== PAUSE TestAccSNSTopic_Name_fifoTopic
=== RUN TestAccSNSTopic_NamePrefix_fifoTopic
=== PAUSE TestAccSNSTopic_NamePrefix_fifoTopic
=== RUN TestAccSNSTopic_fifoWithContentBasedDeduplication
=== PAUSE TestAccSNSTopic_fifoWithContentBasedDeduplication
=== RUN TestAccSNSTopic_fifoExpectContentBasedDeduplicationError
=== PAUSE TestAccSNSTopic_fifoExpectContentBasedDeduplicationError
=== RUN TestAccSNSTopic_encryption
=== PAUSE TestAccSNSTopic_encryption
=== CONT TestAccSNSTopic_basic
=== CONT TestAccSNSTopic_withDeliveryPolicy
=== CONT TestAccSNSTopic_NamePrefix_fifoTopic
--- PASS: TestAccSNSTopic_basic (29.36s)
=== CONT TestAccSNSTopic_encryption
--- PASS: TestAccSNSTopic_NamePrefix_fifoTopic (29.68s)
=== CONT TestAccSNSTopic_fifoExpectContentBasedDeduplicationError
--- PASS: TestAccSNSTopic_withDeliveryPolicy (30.69s)
=== CONT TestAccSNSTopic_fifoWithContentBasedDeduplication
--- PASS: TestAccSNSTopic_fifoExpectContentBasedDeduplicationError (5.76s)
=== CONT TestAccSNSTopic_tags
--- PASS: TestAccSNSTopic_encryption (62.12s)
=== CONT TestAccSNSTopic_withFakeIAMRole
--- PASS: TestAccSNSTopic_fifoWithContentBasedDeduplication (61.20s)
=== CONT TestAccSNSTopic_withIAMRole
--- PASS: TestAccSNSTopic_tags (79.52s)
=== CONT TestAccSNSTopic_policy
--- PASS: TestAccSNSTopic_withIAMRole (52.65s)
=== CONT TestAccSNSTopic_NameGenerated_fifoTopic
--- PASS: TestAccSNSTopic_policy (50.11s)
=== CONT TestAccSNSTopic_Name_fifoTopic
--- PASS: TestAccSNSTopic_NameGenerated_fifoTopic (39.03s)
=== CONT TestAccSNSTopic_name
--- PASS: TestAccSNSTopic_Name_fifoTopic (31.25s)
=== CONT TestAccSNSTopic_namePrefix
--- PASS: TestAccSNSTopic_name (29.36s)
=== CONT TestAccSNSTopic_disappears
--- PASS: TestAccSNSTopic_namePrefix (28.42s)
=== CONT TestAccSNSTopic_deliveryStatus
--- PASS: TestAccSNSTopic_withFakeIAMRole (133.78s)
--- PASS: TestAccSNSTopic_disappears (22.19s)
--- PASS: TestAccSNSTopic_deliveryStatus (37.60s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sns 271.647s
@curator Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.64.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Adds a consistency check/retry for sns:CreateTopic to handle operation with tight ABAC permissions on the IAM policy of the provisioner.
Relations
Closes #29973
References
Output from Acceptance Testing