-
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/aws_sqs_queue: support high-throughput FIFO queues #19639
r/aws_sqs_queue: support high-throughput FIFO queues #19639
Conversation
476ade3
to
7eb75ef
Compare
7eb75ef
to
31b7d39
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 🚀.
Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSSQSQueue_\|TestAccAWSSQSQueuePolicy_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSQSQueue_\|TestAccAWSSQSQueuePolicy_ -timeout 180m
=== RUN TestAccAWSSQSQueuePolicy_basic
=== PAUSE TestAccAWSSQSQueuePolicy_basic
=== RUN TestAccAWSSQSQueuePolicy_disappears
=== PAUSE TestAccAWSSQSQueuePolicy_disappears
=== RUN TestAccAWSSQSQueuePolicy_disappears_queue
=== PAUSE TestAccAWSSQSQueuePolicy_disappears_queue
=== RUN TestAccAWSSQSQueuePolicy_Update
=== PAUSE TestAccAWSSQSQueuePolicy_Update
=== RUN TestAccAWSSQSQueue_basic
=== PAUSE TestAccAWSSQSQueue_basic
=== RUN TestAccAWSSQSQueue_disappears
=== PAUSE TestAccAWSSQSQueue_disappears
=== RUN TestAccAWSSQSQueue_Name_Generated
=== PAUSE TestAccAWSSQSQueue_Name_Generated
=== RUN TestAccAWSSQSQueue_Name_Generated_FIFOQueue
=== PAUSE TestAccAWSSQSQueue_Name_Generated_FIFOQueue
=== RUN TestAccAWSSQSQueue_NamePrefix
=== PAUSE TestAccAWSSQSQueue_NamePrefix
=== RUN TestAccAWSSQSQueue_NamePrefix_FIFOQueue
=== PAUSE TestAccAWSSQSQueue_NamePrefix_FIFOQueue
=== RUN TestAccAWSSQSQueue_Tags
=== PAUSE TestAccAWSSQSQueue_Tags
=== RUN TestAccAWSSQSQueue_Update
=== PAUSE TestAccAWSSQSQueue_Update
=== RUN TestAccAWSSQSQueue_Policy
=== PAUSE TestAccAWSSQSQueue_Policy
=== RUN TestAccAWSSQSQueue_RecentlyDeleted
=== PAUSE TestAccAWSSQSQueue_RecentlyDeleted
=== RUN TestAccAWSSQSQueue_RedrivePolicy
=== PAUSE TestAccAWSSQSQueue_RedrivePolicy
=== RUN TestAccAWSSQSQueue_FIFOQueue
=== PAUSE TestAccAWSSQSQueue_FIFOQueue
=== RUN TestAccAWSSQSQueue_FIFOQueue_ExpectNameError
=== PAUSE TestAccAWSSQSQueue_FIFOQueue_ExpectNameError
=== RUN TestAccAWSSQSQueue_FIFOQueue_ContentBasedDeduplication
=== PAUSE TestAccAWSSQSQueue_FIFOQueue_ContentBasedDeduplication
=== RUN TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode
=== PAUSE TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode
=== RUN TestAccAWSSQSQueue_StandardQueue_ExpectContentBasedDeduplicationError
=== PAUSE TestAccAWSSQSQueue_StandardQueue_ExpectContentBasedDeduplicationError
=== RUN TestAccAWSSQSQueue_Encryption
=== PAUSE TestAccAWSSQSQueue_Encryption
=== RUN TestAccAWSSQSQueue_ZeroVisibilityTimeoutSeconds
=== PAUSE TestAccAWSSQSQueue_ZeroVisibilityTimeoutSeconds
=== CONT TestAccAWSSQSQueuePolicy_basic
=== CONT TestAccAWSSQSQueue_Policy
=== CONT TestAccAWSSQSQueue_Name_Generated
=== CONT TestAccAWSSQSQueuePolicy_disappears_queue
=== CONT TestAccAWSSQSQueuePolicy_Update
=== CONT TestAccAWSSQSQueue_ZeroVisibilityTimeoutSeconds
=== CONT TestAccAWSSQSQueue_Encryption
=== CONT TestAccAWSSQSQueue_disappears
=== CONT TestAccAWSSQSQueuePolicy_disappears
=== CONT TestAccAWSSQSQueue_basic
=== CONT TestAccAWSSQSQueue_StandardQueue_ExpectContentBasedDeduplicationError
=== CONT TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode
=== CONT TestAccAWSSQSQueue_FIFOQueue_ContentBasedDeduplication
=== CONT TestAccAWSSQSQueue_FIFOQueue_ExpectNameError
=== CONT TestAccAWSSQSQueue_FIFOQueue
=== CONT TestAccAWSSQSQueue_RedrivePolicy
=== CONT TestAccAWSSQSQueue_RecentlyDeleted
=== CONT TestAccAWSSQSQueue_Update
=== CONT TestAccAWSSQSQueue_Tags
=== CONT TestAccAWSSQSQueue_NamePrefix_FIFOQueue
=== CONT TestAccAWSSQSQueue_NamePrefix
--- PASS: TestAccAWSSQSQueue_StandardQueue_ExpectContentBasedDeduplicationError (12.09s)
=== CONT TestAccAWSSQSQueue_Name_Generated_FIFOQueue
--- PASS: TestAccAWSSQSQueue_FIFOQueue_ExpectNameError (12.43s)
--- PASS: TestAccAWSSQSQueue_disappears (33.29s)
--- PASS: TestAccAWSSQSQueuePolicy_disappears_queue (35.86s)
--- PASS: TestAccAWSSQSQueue_Name_Generated (43.39s)
--- PASS: TestAccAWSSQSQueue_ZeroVisibilityTimeoutSeconds (44.03s)
--- PASS: TestAccAWSSQSQueue_FIFOQueue_ContentBasedDeduplication (44.20s)
--- PASS: TestAccAWSSQSQueue_FIFOQueue (44.79s)
--- PASS: TestAccAWSSQSQueue_NamePrefix_FIFOQueue (46.14s)
--- PASS: TestAccAWSSQSQueue_basic (46.20s)
--- PASS: TestAccAWSSQSQueue_NamePrefix (34.95s)
--- PASS: TestAccAWSSQSQueue_Name_Generated_FIFOQueue (34.71s)
--- PASS: TestAccAWSSQSQueue_RedrivePolicy (49.35s)
--- PASS: TestAccAWSSQSQueue_Encryption (56.53s)
--- PASS: TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode (57.93s)
--- PASS: TestAccAWSSQSQueue_Update (58.33s)
--- PASS: TestAccAWSSQSQueue_Tags (74.18s)
--- PASS: TestAccAWSSQSQueue_Policy (85.11s)
--- PASS: TestAccAWSSQSQueuePolicy_disappears (90.01s)
--- PASS: TestAccAWSSQSQueue_RecentlyDeleted (95.42s)
--- PASS: TestAccAWSSQSQueuePolicy_basic (116.59s)
--- PASS: TestAccAWSSQSQueuePolicy_Update (120.83s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 123.887s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSSQSQueue_\|TestAccAWSSQSQueuePolicy_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSQSQueue_\|TestAccAWSSQSQueuePolicy_ -timeout 180m
=== RUN TestAccAWSSQSQueuePolicy_basic
=== PAUSE TestAccAWSSQSQueuePolicy_basic
=== RUN TestAccAWSSQSQueuePolicy_disappears
=== PAUSE TestAccAWSSQSQueuePolicy_disappears
=== RUN TestAccAWSSQSQueuePolicy_disappears_queue
=== PAUSE TestAccAWSSQSQueuePolicy_disappears_queue
=== RUN TestAccAWSSQSQueuePolicy_Update
=== PAUSE TestAccAWSSQSQueuePolicy_Update
=== RUN TestAccAWSSQSQueue_basic
=== PAUSE TestAccAWSSQSQueue_basic
=== RUN TestAccAWSSQSQueue_disappears
=== PAUSE TestAccAWSSQSQueue_disappears
=== RUN TestAccAWSSQSQueue_Name_Generated
=== PAUSE TestAccAWSSQSQueue_Name_Generated
=== RUN TestAccAWSSQSQueue_Name_Generated_FIFOQueue
=== PAUSE TestAccAWSSQSQueue_Name_Generated_FIFOQueue
=== RUN TestAccAWSSQSQueue_NamePrefix
=== PAUSE TestAccAWSSQSQueue_NamePrefix
=== RUN TestAccAWSSQSQueue_NamePrefix_FIFOQueue
=== PAUSE TestAccAWSSQSQueue_NamePrefix_FIFOQueue
=== RUN TestAccAWSSQSQueue_Tags
=== PAUSE TestAccAWSSQSQueue_Tags
=== RUN TestAccAWSSQSQueue_Update
=== PAUSE TestAccAWSSQSQueue_Update
=== RUN TestAccAWSSQSQueue_Policy
=== PAUSE TestAccAWSSQSQueue_Policy
=== RUN TestAccAWSSQSQueue_RecentlyDeleted
=== PAUSE TestAccAWSSQSQueue_RecentlyDeleted
=== RUN TestAccAWSSQSQueue_RedrivePolicy
=== PAUSE TestAccAWSSQSQueue_RedrivePolicy
=== RUN TestAccAWSSQSQueue_FIFOQueue
=== PAUSE TestAccAWSSQSQueue_FIFOQueue
=== RUN TestAccAWSSQSQueue_FIFOQueue_ExpectNameError
=== PAUSE TestAccAWSSQSQueue_FIFOQueue_ExpectNameError
=== RUN TestAccAWSSQSQueue_FIFOQueue_ContentBasedDeduplication
=== PAUSE TestAccAWSSQSQueue_FIFOQueue_ContentBasedDeduplication
=== RUN TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode
=== PAUSE TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode
=== RUN TestAccAWSSQSQueue_StandardQueue_ExpectContentBasedDeduplicationError
=== PAUSE TestAccAWSSQSQueue_StandardQueue_ExpectContentBasedDeduplicationError
=== RUN TestAccAWSSQSQueue_Encryption
=== PAUSE TestAccAWSSQSQueue_Encryption
=== RUN TestAccAWSSQSQueue_ZeroVisibilityTimeoutSeconds
=== PAUSE TestAccAWSSQSQueue_ZeroVisibilityTimeoutSeconds
=== CONT TestAccAWSSQSQueuePolicy_basic
=== CONT TestAccAWSSQSQueue_Policy
=== CONT TestAccAWSSQSQueue_FIFOQueue_ContentBasedDeduplication
=== CONT TestAccAWSSQSQueue_FIFOQueue_ExpectNameError
=== CONT TestAccAWSSQSQueue_StandardQueue_ExpectContentBasedDeduplicationError
=== CONT TestAccAWSSQSQueue_ZeroVisibilityTimeoutSeconds
=== CONT TestAccAWSSQSQueue_Name_Generated_FIFOQueue
=== CONT TestAccAWSSQSQueue_Name_Generated
=== CONT TestAccAWSSQSQueue_Update
=== CONT TestAccAWSSQSQueue_Tags
=== CONT TestAccAWSSQSQueue_NamePrefix_FIFOQueue
=== CONT TestAccAWSSQSQueue_NamePrefix
=== CONT TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode
=== CONT TestAccAWSSQSQueue_Encryption
=== CONT TestAccAWSSQSQueue_FIFOQueue
=== CONT TestAccAWSSQSQueue_RedrivePolicy
=== CONT TestAccAWSSQSQueue_RecentlyDeleted
=== CONT TestAccAWSSQSQueuePolicy_disappears
=== CONT TestAccAWSSQSQueuePolicy_disappears_queue
=== CONT TestAccAWSSQSQueuePolicy_Update
--- PASS: TestAccAWSSQSQueue_StandardQueue_ExpectContentBasedDeduplicationError (15.13s)
=== CONT TestAccAWSSQSQueue_disappears
--- PASS: TestAccAWSSQSQueue_FIFOQueue_ExpectNameError (15.45s)
=== CONT TestAccAWSSQSQueue_basic
--- PASS: TestAccAWSSQSQueue_disappears (24.49s)
--- PASS: TestAccAWSSQSQueuePolicy_disappears_queue (39.98s)
--- PASS: TestAccAWSSQSQueue_Name_Generated (43.40s)
--- PASS: TestAccAWSSQSQueue_NamePrefix_FIFOQueue (44.05s)
--- PASS: TestAccAWSSQSQueue_Name_Generated_FIFOQueue (44.35s)
--- PASS: TestAccAWSSQSQueue_FIFOQueue_ContentBasedDeduplication (44.42s)
=== CONT TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode
resource_aws_sqs_queue_test.go:540: Step 3/3 error: Check failed: Check 2/4 error: aws_sqs_queue.test: Attribute 'deduplication_scope' expected "messageGroup", got "queue"
=== CONT TestAccAWSSQSQueue_RedrivePolicy
testing_new.go:63: Error running post-test destroy, there may be dangling resources: SQS Queue https://sqs.us-gov-west-1.amazonaws.com/123456789012/tf-acc-test-3677550227255856731-2 still exists
--- FAIL: TestAccAWSSQSQueue_RedrivePolicy (47.73s)
--- PASS: TestAccAWSSQSQueue_basic (32.56s)
--- PASS: TestAccAWSSQSQueue_NamePrefix (50.18s)
--- PASS: TestAccAWSSQSQueue_ZeroVisibilityTimeoutSeconds (50.98s)
--- PASS: TestAccAWSSQSQueue_FIFOQueue (51.33s)
=== CONT TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode
testing_new.go:63: Error running post-test destroy, there may be dangling resources: SQS Queue https://sqs.us-gov-west-1.amazonaws.com/123456789012/tf-acc-test-271893099192892502.fifo still exists
--- FAIL: TestAccAWSSQSQueue_FIFOQueue_HighThroughputMode (51.75s)
--- PASS: TestAccAWSSQSQueuePolicy_basic (54.87s)
=== CONT TestAccAWSSQSQueue_Encryption
testing_new.go:63: Error running post-test destroy, there may be dangling resources: SQS Queue https://sqs.us-gov-west-1.amazonaws.com/123456789012/tf-acc-test-7615187763346557890 still exists
--- FAIL: TestAccAWSSQSQueue_Encryption (56.93s)
--- PASS: TestAccAWSSQSQueuePolicy_Update (63.30s)
--- PASS: TestAccAWSSQSQueue_Update (69.94s)
--- PASS: TestAccAWSSQSQueue_Tags (70.99s)
--- PASS: TestAccAWSSQSQueue_Policy (84.03s)
--- PASS: TestAccAWSSQSQueuePolicy_disappears (91.57s)
--- PASS: TestAccAWSSQSQueue_RecentlyDeleted (101.80s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 105.600s
FAIL
make: *** [testacc] Error 1
The failures are caused by eventual consistency issues in GovCloud and are not new.
@roberth-k Thanks for the contribution 🎉 👏. |
This functionality has been released in v3.45.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. |
Community Note
Closes #19630
Closes #19498
Closes #11848
Closes #14166
Closes #13759
Closes #13980
Adds the
deduplication_scope
andfifo_throughput_limit
, which can be used to enable the high-throughput mode of FIFO queues.Output from acceptance testing: