-
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
sqs: Fix diffs with policies #22194
sqs: Fix diffs with policies #22194
Conversation
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 TESTS=TestAccSQSQueue_ PKG=sqs
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/sqs/... -v -count 1 -parallel 20 -run='TestAccSQSQueue_' -timeout 180m
=== RUN TestAccSQSQueue_basic
=== PAUSE TestAccSQSQueue_basic
=== RUN TestAccSQSQueue_disappears
=== PAUSE TestAccSQSQueue_disappears
=== RUN TestAccSQSQueue_Name_generated
=== PAUSE TestAccSQSQueue_Name_generated
=== RUN TestAccSQSQueue_NameGenerated_fifoQueue
=== PAUSE TestAccSQSQueue_NameGenerated_fifoQueue
=== RUN TestAccSQSQueue_namePrefix
=== PAUSE TestAccSQSQueue_namePrefix
=== RUN TestAccSQSQueue_NamePrefix_fifoQueue
=== PAUSE TestAccSQSQueue_NamePrefix_fifoQueue
=== RUN TestAccSQSQueue_tags
=== PAUSE TestAccSQSQueue_tags
=== RUN TestAccSQSQueue_update
=== PAUSE TestAccSQSQueue_update
=== RUN TestAccSQSQueue_Policy_basic
=== PAUSE TestAccSQSQueue_Policy_basic
=== RUN TestAccSQSQueue_Policy_ignoreEquivalent
=== PAUSE TestAccSQSQueue_Policy_ignoreEquivalent
=== RUN TestAccSQSQueue_recentlyDeleted
=== PAUSE TestAccSQSQueue_recentlyDeleted
=== RUN TestAccSQSQueue_redrivePolicy
=== PAUSE TestAccSQSQueue_redrivePolicy
=== RUN TestAccSQSQueue_fifoQueue
=== PAUSE TestAccSQSQueue_fifoQueue
=== RUN TestAccSQSQueue_FIFOQueue_expectNameError
=== PAUSE TestAccSQSQueue_FIFOQueue_expectNameError
=== RUN TestAccSQSQueue_FIFOQueue_contentBasedDeduplication
=== PAUSE TestAccSQSQueue_FIFOQueue_contentBasedDeduplication
=== RUN TestAccSQSQueue_FIFOQueue_highThroughputMode
=== PAUSE TestAccSQSQueue_FIFOQueue_highThroughputMode
=== RUN TestAccSQSQueue_StandardQueue_expectContentBasedDeduplicationError
=== PAUSE TestAccSQSQueue_StandardQueue_expectContentBasedDeduplicationError
=== RUN TestAccSQSQueue_encryption
=== PAUSE TestAccSQSQueue_encryption
=== RUN TestAccSQSQueue_zeroVisibilityTimeoutSeconds
=== PAUSE TestAccSQSQueue_zeroVisibilityTimeoutSeconds
=== RUN TestAccSQSQueue_defaultKMSDataKeyReusePeriodSeconds
=== PAUSE TestAccSQSQueue_defaultKMSDataKeyReusePeriodSeconds
=== CONT TestAccSQSQueue_basic
=== CONT TestAccSQSQueue_redrivePolicy
=== CONT TestAccSQSQueue_StandardQueue_expectContentBasedDeduplicationError
=== CONT TestAccSQSQueue_FIFOQueue_highThroughputMode
=== CONT TestAccSQSQueue_encryption
=== CONT TestAccSQSQueue_disappears
=== CONT TestAccSQSQueue_FIFOQueue_contentBasedDeduplication
=== CONT TestAccSQSQueue_FIFOQueue_expectNameError
=== CONT TestAccSQSQueue_fifoQueue
=== CONT TestAccSQSQueue_tags
=== CONT TestAccSQSQueue_recentlyDeleted
=== CONT TestAccSQSQueue_Policy_ignoreEquivalent
=== CONT TestAccSQSQueue_Policy_basic
=== CONT TestAccSQSQueue_update
=== CONT TestAccSQSQueue_NameGenerated_fifoQueue
=== CONT TestAccSQSQueue_NamePrefix_fifoQueue
=== CONT TestAccSQSQueue_zeroVisibilityTimeoutSeconds
=== CONT TestAccSQSQueue_namePrefix
=== CONT TestAccSQSQueue_defaultKMSDataKeyReusePeriodSeconds
=== CONT TestAccSQSQueue_Name_generated
--- PASS: TestAccSQSQueue_StandardQueue_expectContentBasedDeduplicationError (7.66s)
--- PASS: TestAccSQSQueue_FIFOQueue_expectNameError (8.02s)
--- PASS: TestAccSQSQueue_disappears (31.96s)
--- PASS: TestAccSQSQueue_zeroVisibilityTimeoutSeconds (40.56s)
--- PASS: TestAccSQSQueue_defaultKMSDataKeyReusePeriodSeconds (44.24s)
--- PASS: TestAccSQSQueue_Name_generated (44.38s)
--- PASS: TestAccSQSQueue_NameGenerated_fifoQueue (44.38s)
--- PASS: TestAccSQSQueue_basic (44.40s)
--- PASS: TestAccSQSQueue_NamePrefix_fifoQueue (44.45s)
--- PASS: TestAccSQSQueue_FIFOQueue_contentBasedDeduplication (44.63s)
--- PASS: TestAccSQSQueue_fifoQueue (44.68s)
--- PASS: TestAccSQSQueue_namePrefix (44.80s)
--- PASS: TestAccSQSQueue_redrivePolicy (47.10s)
--- PASS: TestAccSQSQueue_update (55.88s)
--- PASS: TestAccSQSQueue_FIFOQueue_highThroughputMode (56.22s)
--- PASS: TestAccSQSQueue_tags (63.90s)
--- PASS: TestAccSQSQueue_encryption (67.10s)
--- PASS: TestAccSQSQueue_Policy_ignoreEquivalent (78.01s)
--- PASS: TestAccSQSQueue_Policy_basic (84.02s)
--- PASS: TestAccSQSQueue_recentlyDeleted (92.32s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sqs 95.919s
This functionality has been released in v3.70.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! |
This still seems to be an issue with #22197 (comment) even after upgrading to 3.71.0 so we have had to pin to 3.68.0 |
I'm using v3.71.0 and seeing whitespace diffs for the |
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. |
Community Note
Relates #21968
Fixes #19836
Fixes #20333
NOTE: These changes will make SQS configurations take a little longer to apply. However, because SQS has such trouble with eventual consistency, the extra time is needed to improve consistency.
I ran each test 10X in 3 different regions. Unfortunately, these changes do not perfectly fix all eventual consistency problems (see #19836 and #20333). However, the overall improvement is significant:
us-west-2
us-east-1
Output from acceptance testing (
us-west-2
):Output from acceptance testing (GovCloud):