Skip to content

Conversation

@gdavison
Copy link
Contributor

@gdavison gdavison commented Oct 28, 2025

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

Description

The resource types aws_sqs_queue, aws_sqs_queue_policy, aws_sqs_queue_redrive_allow_policy, and aws_sqs_queue_redrive_policy are identified by a url or queue_url attribute that contains the account ID and region. Instead of specifying account_id, region, and url as three Resource Identity attributes, simply use url.

Adds support for:

  • custom inherent region identity handling
  • resource identity version upgrade

Closes #44777

Output from Acceptance Testing

% make testacc PKG=sqs TESTS=TestAccSQSQueue_

--- PASS: TestAccSQSQueue_FIFOQueue_expectNameError (6.72s)
--- PASS: TestAccSQSQueue_StandardQueue_expectContentBasedDeduplicationError (9.68s)
--- PASS: TestAccSQSQueue_noEncryptionKMSDataKeyReusePeriodSeconds (75.53s)
--- PASS: TestAccSQSQueue_ManagedEncryption_kmsDataKeyReusePeriodSeconds (76.05s)
--- PASS: TestAccSQSQueue_defaultKMSDataKeyReusePeriodSeconds (89.41s)
--- PASS: TestAccSQSQueue_FIFOQueue_contentBasedDeduplication (89.83s)
--- PASS: TestAccSQSQueue_zeroVisibilityTimeoutSeconds (93.72s)
--- PASS: TestAccSQSQueue_fifoQueue (93.73s)
--- PASS: TestAccSQSQueue_Policy_basic (87.23s)
--- PASS: TestAccSQSQueue_NameGenerated_fifoQueue (84.93s)
--- PASS: TestAccSQSQueue_Policy_ignoreEquivalent (108.00s)
--- PASS: TestAccSQSQueue_redrivePolicy (114.80s)
--- PASS: TestAccSQSQueue_redriveAllowPolicy (116.31s)
--- PASS: TestAccSQSQueue_Identity_Basic (117.26s)
--- PASS: TestAccSQSQueue_update (127.86s)
--- PASS: TestAccSQSQueue_timeouts (129.38s)
--- PASS: TestAccSQSQueue_NamePrefix_fifoQueue (68.65s)
--- PASS: TestAccSQSQueue_namePrefix (68.18s)
--- PASS: TestAccSQSQueue_FIFOQueue_highThroughputMode (151.83s)
--- PASS: TestAccSQSQueue_tags_IgnoreTags_Overlap_ResourceTag (192.84s)
--- PASS: TestAccSQSQueue_Name_generated (105.65s)
--- PASS: TestAccSQSQueue_disappears (126.27s)
--- PASS: TestAccSQSQueue_managedEncryption (234.90s)
--- PASS: TestAccSQSQueue_encryption (240.25s)
--- PASS: TestAccSQSQueue_recentlyDeleted (246.23s)
--- PASS: TestAccSQSQueue_tags_null (170.34s)
--- PASS: TestAccSQSQueue_tags_EmptyMap (165.44s)
--- PASS: TestAccSQSQueue_tags_EmptyTag_OnUpdate_Replace (186.90s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_nullOverlappingResourceTag (125.34s)
--- PASS: TestAccSQSQueue_tags_AddOnUpdate (189.20s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_providerOnly (318.78s)
--- PASS: TestAccSQSQueue_tags_EmptyTag_OnCreate (225.08s)
--- PASS: TestAccSQSQueue_Identity_Upgrade (214.59s)
--- PASS: TestAccSQSQueue_Identity_Upgrade_NoRefresh (210.16s)
--- PASS: TestAccSQSQueue_Identity_ExistingResource (215.97s)
--- PASS: TestAccSQSQueue_Identity_ExistingResource_NoRefresh_NoChange (211.94s)
--- PASS: TestAccSQSQueue_tags_EmptyTag_OnUpdate_Add (277.57s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_nullNonOverlappingResourceTag (131.69s)
--- PASS: TestAccSQSQueue_basic (127.16s)
--- PASS: TestAccSQSQueue_tags_ComputedTag_OnCreate (138.74s)
--- PASS: TestAccSQSQueue_Identity_RegionOverride (232.65s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_emptyProviderOnlyTag (117.43s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_emptyResourceTag (112.10s)
--- PASS: TestAccSQSQueue_tags_ComputedTag_OnUpdate_Replace (172.65s)
--- PASS: TestAccSQSQueue_tags_IgnoreTags_Overlap_DefaultTag (200.50s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_updateToResourceOnly (137.11s)
--- PASS: TestAccSQSQueue_tags_ComputedTag_OnUpdate_Add (162.82s)
--- PASS: TestAccSQSQueue_tags (289.83s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_updateToProviderOnly (125.28s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_overlapping (147.13s)
--- PASS: TestAccSQSQueue_tags_DefaultTags_nonOverlapping (113.30s)
% make testacc PKG=sqs TESTS=TestAccSQSQueuePolicy_

--- PASS: TestAccSQSQueuePolicy_basic (109.02s)
--- PASS: TestAccSQSQueuePolicy_Identity_Basic (110.86s)
--- PASS: TestAccSQSQueuePolicy_Identity_RegionOverride (124.97s)
--- PASS: TestAccSQSQueuePolicy_update (135.59s)
--- PASS: TestAccSQSQueuePolicy_Identity_Upgrade_NoRefresh (138.87s)
--- PASS: TestAccSQSQueuePolicy_Disappears_queue (141.07s)
--- PASS: TestAccSQSQueuePolicy_Identity_ExistingResource_NoRefresh_NoChange (143.81s)
--- PASS: TestAccSQSQueuePolicy_Identity_ExistingResource (147.33s)
--- PASS: TestAccSQSQueuePolicy_Identity_Upgrade (150.25s)
--- PASS: TestAccSQSQueuePolicy_disappears (157.74s)
% make testacc PKG=sqs TESTS=TestAccSQSQueueRedriveAllowPolicy_

--- PASS: TestAccSQSQueueRedriveAllowPolicy_byQueue (123.21s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_basic (141.15s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_Identity_Basic (143.15s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_Identity_RegionOverride (157.43s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_update (163.28s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_Identity_ExistingResource_NoRefresh_NoChange (164.60s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_Identity_ExistingResource (168.04s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_Disappears_queue (169.96s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_Identity_Upgrade (172.86s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_Identity_Upgrade_NoRefresh (173.63s)
--- PASS: TestAccSQSQueueRedriveAllowPolicy_disappears (184.00s)
% make testacc PKG=sqs TESTS=TestAccSQSQueueRedrivePolicy_

--- PASS: TestAccSQSQueueRedrivePolicy_basic (134.57s)
--- PASS: TestAccSQSQueueRedrivePolicy_Identity_Basic (136.10s)
--- PASS: TestAccSQSQueueRedrivePolicy_Identity_RegionOverride (146.74s)
--- PASS: TestAccSQSQueueRedrivePolicy_Identity_Upgrade_NoRefresh (160.60s)
--- PASS: TestAccSQSQueueRedrivePolicy_update (161.93s)
--- PASS: TestAccSQSQueueRedrivePolicy_Identity_ExistingResource_NoRefresh_NoChange (164.28s)
--- PASS: TestAccSQSQueueRedrivePolicy_Disappears_queue (168.82s)
--- PASS: TestAccSQSQueueRedrivePolicy_Identity_ExistingResource (170.49s)
--- PASS: TestAccSQSQueueRedrivePolicy_Identity_Upgrade (173.84s)
--- PASS: TestAccSQSQueueRedrivePolicy_disappears (182.40s)

@gdavison gdavison requested a review from a team as a code owner October 28, 2025 20:58
@github-actions
Copy link
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Oct 28, 2025
@github-actions github-actions bot added service/sqs Issues and PRs that pertain to the sqs service. provider Pertains to the provider itself, rather than any interaction with AWS. generators Relates to code generators. size/XL Managed by automation to categorize the size of a PR. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. labels Oct 28, 2025
Copy link
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@gdavison gdavison merged commit e5e7452 into main Oct 29, 2025
67 checks passed
@gdavison gdavison deleted the b-sqs-identity branch October 29, 2025 20:41
@github-actions
Copy link
Contributor

Warning

This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v6.19.0 milestone Oct 29, 2025
terraform-aws-provider bot pushed a commit that referenced this pull request Oct 29, 2025
@github-actions
Copy link
Contributor

This functionality has been released in v6.19.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!

@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Oct 31, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Introduces or discusses updates to documentation. generators Relates to code generators. provider Pertains to the provider itself, rather than any interaction with AWS. service/sqs Issues and PRs that pertain to the sqs service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot import sqs queue resources from region other than the provider's

2 participants