Skip to content

r/aws_ssm_association: add list support#47321

Merged
jar-b merged 1 commit into
mainfrom
f-ssm_assocation-list
Apr 8, 2026
Merged

r/aws_ssm_association: add list support#47321
jar-b merged 1 commit into
mainfrom
f-ssm_assocation-list

Conversation

@jar-b
Copy link
Copy Markdown
Member

@jar-b jar-b commented Apr 7, 2026

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

Adds list support for the aws_ssm_association resource.

Relations

Relates #47005
Closes #47228

Output from Acceptance Testing

% make t K=ssm T=TestAccSSMAssociation_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-ssm_assocation-list 🌿...
TF_ACC=1 go1.25.8 test ./internal/service/ssm/... -v -count 1 -parallel 20 -run='TestAccSSMAssociation_'  -timeout 360m -vet=off
2026/04/07 11:16:55 Creating Terraform AWS Provider (SDKv2-style)...
2026/04/07 11:16:55 Initializing Terraform AWS Provider (SDKv2-style)...

--- PASS: TestAccSSMAssociation_List_regionOverride (57.67s)
=== CONT  TestAccSSMAssociation_Tags_DefaultTags_nullNonOverlappingResourceTag
--- PASS: TestAccSSMAssociation_List_basic (57.74s)
=== CONT  TestAccSSMAssociation_Tags_IgnoreTags_Overlap_defaultTag
--- PASS: TestAccSSMAssociation_Tags_ComputedTag_onCreate (86.52s)
=== CONT  TestAccSSMAssociation_basic
--- PASS: TestAccSSMAssociation_List_includeResource (92.14s)
=== CONT  TestAccSSMAssociation_Tags_IgnoreTags_Overlap_resourceTag
--- PASS: TestAccSSMAssociation_syncCompliance (98.70s)
=== CONT  TestAccSSMAssociation_withOutputLocation_waitForSuccessTimeout
--- PASS: TestAccSSMAssociation_Identity_regionOverride (116.73s)
=== CONT  TestAccSSMAssociation_withComplianceSeverity
--- PASS: TestAccSSMAssociation_Identity_ExistingResource_basic (116.89s)
=== CONT  TestAccSSMAssociation_withScheduleExpression
--- PASS: TestAccSSMAssociation_Identity_ExistingResource_noRefreshNoChange (124.05s)
=== CONT  TestAccSSMAssociation_withAutomationTargetParamName
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_nullOverlappingResourceTag (124.38s)
=== CONT  TestAccSSMAssociation_withTargets
--- PASS: TestAccSSMAssociation_Identity_basic (130.61s)
=== CONT  TestAccSSMAssociation_withParameters
--- PASS: TestAccSSMAssociation_Tags_null (137.30s)
=== CONT  TestAccSSMAssociation_Tags_EmptyTag_OnUpdate_replace
--- PASS: TestAccSSMAssociation_withAssociationName (142.86s)
=== CONT  TestAccSSMAssociation_applyOnlyAtCronInterval
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_updateToProviderOnly (143.02s)
=== CONT  TestAccSSMAssociation_tags
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_updateToResourceOnly (155.36s)
=== CONT  TestAccSSMAssociation_Tags_ComputedTag_OnUpdate_replace
--- PASS: TestAccSSMAssociation_rateControl (156.02s)
=== CONT  TestAccSSMAssociation_Tags_EmptyTag_onCreate
--- PASS: TestAccSSMAssociation_Tags_emptyMap (161.32s)
=== CONT  TestAccSSMAssociation_Tags_addOnUpdate
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_nullNonOverlappingResourceTag (103.95s)
=== CONT  TestAccSSMAssociation_Tags_ComputedTag_OnUpdate_add
--- PASS: TestAccSSMAssociation_withOutputLocation_waitForSuccessTimeout (96.05s)
=== CONT  TestAccSSMAssociation_disappears_document
--- PASS: TestAccSSMAssociation_withComplianceSeverity (131.38s)
=== CONT  TestAccSSMAssociation_withOutputLocation
--- PASS: TestAccSSMAssociation_withScheduleExpression (131.28s)
=== CONT  TestAccSSMAssociation_withOutputLocation_s3Region
--- PASS: TestAccSSMAssociation_basic (165.00s)
=== CONT  TestAccSSMAssociation_withDocumentVersion
--- PASS: TestAccSSMAssociation_Tags_IgnoreTags_Overlap_defaultTag (201.78s)
=== CONT  TestAccSSMAssociation_Tags_DefaultTags_emptyProviderOnlyTag
--- PASS: TestAccSSMAssociation_withParameters (135.65s)
=== CONT  TestAccSSMAssociation_withAssociationNameAndScheduleExpression
--- PASS: TestAccSSMAssociation_withAutomationTargetParamName (142.24s)
=== CONT  TestAccSSMAssociation_Tags_DefaultTags_emptyResourceTag
--- PASS: TestAccSSMAssociation_applyOnlyAtCronInterval (128.59s)
=== CONT  TestAccSSMAssociation_disappears
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_nonOverlapping (272.68s)
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_overlapping (284.01s)
--- PASS: TestAccSSMAssociation_withTargets (174.97s)
--- PASS: TestAccSSMAssociation_Tags_EmptyTag_OnUpdate_add (299.57s)
--- PASS: TestAccSSMAssociation_Tags_EmptyTag_OnUpdate_replace (162.76s)
--- PASS: TestAccSSMAssociation_Tags_ComputedTag_OnUpdate_replace (148.15s)
--- PASS: TestAccSSMAssociation_Tags_addOnUpdate (146.20s)
--- PASS: TestAccSSMAssociation_Tags_EmptyTag_onCreate (158.24s)
--- PASS: TestAccSSMAssociation_Tags_ComputedTag_OnUpdate_add (152.63s)
--- PASS: TestAccSSMAssociation_withDocumentVersion (65.28s)
--- PASS: TestAccSSMAssociation_Tags_IgnoreTags_Overlap_resourceTag (226.71s)
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_emptyProviderOnlyTag (64.66s)
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_emptyResourceTag (61.77s)
--- PASS: TestAccSSMAssociation_disappears_document (140.53s)
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_providerOnly (336.33s)
--- PASS: TestAccSSMAssociation_withAssociationNameAndScheduleExpression (76.51s)
--- PASS: TestAccSSMAssociation_withOutputLocation (111.61s)
--- PASS: TestAccSSMAssociation_tags (218.60s)
--- PASS: TestAccSSMAssociation_withOutputLocation_s3Region (114.91s)
--- PASS: TestAccSSMAssociation_disappears (117.08s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ssm        395.691s

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

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 prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/ssm Issues and PRs that pertain to the ssm service. generators Relates to code generators. size/XL Managed by automation to categorize the size of a PR. labels Apr 7, 2026
@jar-b jar-b added the new-list-resource Introduces list resource support. label Apr 7, 2026
@jar-b jar-b force-pushed the f-ssm_assocation-list branch from 2266beb to 0aa4bcf Compare April 7, 2026 18:33
Adds list support for the `aws_ssm_association` resource.

```console
% make t K=ssm T=TestAccSSMAssociation_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-ssm_assocation-list 🌿...
TF_ACC=1 go1.25.8 test ./internal/service/ssm/... -v -count 1 -parallel 20 -run='TestAccSSMAssociation_'  -timeout 360m -vet=off
2026/04/07 11:16:55 Creating Terraform AWS Provider (SDKv2-style)...
2026/04/07 11:16:55 Initializing Terraform AWS Provider (SDKv2-style)...

--- PASS: TestAccSSMAssociation_List_regionOverride (57.67s)
=== CONT  TestAccSSMAssociation_Tags_DefaultTags_nullNonOverlappingResourceTag
--- PASS: TestAccSSMAssociation_List_basic (57.74s)
=== CONT  TestAccSSMAssociation_Tags_IgnoreTags_Overlap_defaultTag
--- PASS: TestAccSSMAssociation_Tags_ComputedTag_onCreate (86.52s)
=== CONT  TestAccSSMAssociation_basic
--- PASS: TestAccSSMAssociation_List_includeResource (92.14s)
=== CONT  TestAccSSMAssociation_Tags_IgnoreTags_Overlap_resourceTag
--- PASS: TestAccSSMAssociation_syncCompliance (98.70s)
=== CONT  TestAccSSMAssociation_withOutputLocation_waitForSuccessTimeout
--- PASS: TestAccSSMAssociation_Identity_regionOverride (116.73s)
=== CONT  TestAccSSMAssociation_withComplianceSeverity
--- PASS: TestAccSSMAssociation_Identity_ExistingResource_basic (116.89s)
=== CONT  TestAccSSMAssociation_withScheduleExpression
--- PASS: TestAccSSMAssociation_Identity_ExistingResource_noRefreshNoChange (124.05s)
=== CONT  TestAccSSMAssociation_withAutomationTargetParamName
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_nullOverlappingResourceTag (124.38s)
=== CONT  TestAccSSMAssociation_withTargets
--- PASS: TestAccSSMAssociation_Identity_basic (130.61s)
=== CONT  TestAccSSMAssociation_withParameters
--- PASS: TestAccSSMAssociation_Tags_null (137.30s)
=== CONT  TestAccSSMAssociation_Tags_EmptyTag_OnUpdate_replace
--- PASS: TestAccSSMAssociation_withAssociationName (142.86s)
=== CONT  TestAccSSMAssociation_applyOnlyAtCronInterval
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_updateToProviderOnly (143.02s)
=== CONT  TestAccSSMAssociation_tags
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_updateToResourceOnly (155.36s)
=== CONT  TestAccSSMAssociation_Tags_ComputedTag_OnUpdate_replace
--- PASS: TestAccSSMAssociation_rateControl (156.02s)
=== CONT  TestAccSSMAssociation_Tags_EmptyTag_onCreate
--- PASS: TestAccSSMAssociation_Tags_emptyMap (161.32s)
=== CONT  TestAccSSMAssociation_Tags_addOnUpdate
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_nullNonOverlappingResourceTag (103.95s)
=== CONT  TestAccSSMAssociation_Tags_ComputedTag_OnUpdate_add
--- PASS: TestAccSSMAssociation_withOutputLocation_waitForSuccessTimeout (96.05s)
=== CONT  TestAccSSMAssociation_disappears_document
--- PASS: TestAccSSMAssociation_withComplianceSeverity (131.38s)
=== CONT  TestAccSSMAssociation_withOutputLocation
--- PASS: TestAccSSMAssociation_withScheduleExpression (131.28s)
=== CONT  TestAccSSMAssociation_withOutputLocation_s3Region
--- PASS: TestAccSSMAssociation_basic (165.00s)
=== CONT  TestAccSSMAssociation_withDocumentVersion
--- PASS: TestAccSSMAssociation_Tags_IgnoreTags_Overlap_defaultTag (201.78s)
=== CONT  TestAccSSMAssociation_Tags_DefaultTags_emptyProviderOnlyTag
--- PASS: TestAccSSMAssociation_withParameters (135.65s)
=== CONT  TestAccSSMAssociation_withAssociationNameAndScheduleExpression
--- PASS: TestAccSSMAssociation_withAutomationTargetParamName (142.24s)
=== CONT  TestAccSSMAssociation_Tags_DefaultTags_emptyResourceTag
--- PASS: TestAccSSMAssociation_applyOnlyAtCronInterval (128.59s)
=== CONT  TestAccSSMAssociation_disappears
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_nonOverlapping (272.68s)
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_overlapping (284.01s)
--- PASS: TestAccSSMAssociation_withTargets (174.97s)
--- PASS: TestAccSSMAssociation_Tags_EmptyTag_OnUpdate_add (299.57s)
--- PASS: TestAccSSMAssociation_Tags_EmptyTag_OnUpdate_replace (162.76s)
--- PASS: TestAccSSMAssociation_Tags_ComputedTag_OnUpdate_replace (148.15s)
--- PASS: TestAccSSMAssociation_Tags_addOnUpdate (146.20s)
--- PASS: TestAccSSMAssociation_Tags_EmptyTag_onCreate (158.24s)
--- PASS: TestAccSSMAssociation_Tags_ComputedTag_OnUpdate_add (152.63s)
--- PASS: TestAccSSMAssociation_withDocumentVersion (65.28s)
--- PASS: TestAccSSMAssociation_Tags_IgnoreTags_Overlap_resourceTag (226.71s)
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_emptyProviderOnlyTag (64.66s)
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_emptyResourceTag (61.77s)
--- PASS: TestAccSSMAssociation_disappears_document (140.53s)
--- PASS: TestAccSSMAssociation_Tags_DefaultTags_providerOnly (336.33s)
--- PASS: TestAccSSMAssociation_withAssociationNameAndScheduleExpression (76.51s)
--- PASS: TestAccSSMAssociation_withOutputLocation (111.61s)
--- PASS: TestAccSSMAssociation_tags (218.60s)
--- PASS: TestAccSSMAssociation_withOutputLocation_s3Region (114.91s)
--- PASS: TestAccSSMAssociation_disappears (117.08s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ssm        395.691s
```
@jar-b jar-b force-pushed the f-ssm_assocation-list branch from 0aa4bcf to 018018f Compare April 7, 2026 19:12
@jar-b jar-b marked this pull request as ready for review April 7, 2026 21:01
@jar-b jar-b requested a review from a team as a code owner April 7, 2026 21:01
Copy link
Copy Markdown
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

@jar-b jar-b merged commit 8236d1f into main Apr 8, 2026
73 checks passed
@jar-b jar-b deleted the f-ssm_assocation-list branch April 8, 2026 14:06
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

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.40.0 milestone Apr 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

This functionality has been released in v6.40.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 Apr 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

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 May 9, 2026
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. new-list-resource Introduces list resource support. service/ssm Issues and PRs that pertain to the ssm 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.

List: aws_ssm_association

2 participants