Skip to content

aws_ssm_resource_data_sync - Add DestinationDataSharingType#21996

Merged
gdavison merged 21 commits into
hashicorp:mainfrom
melbit-michaelw:f-aws_ssm_resource_data_sync
May 21, 2026
Merged

aws_ssm_resource_data_sync - Add DestinationDataSharingType#21996
gdavison merged 21 commits into
hashicorp:mainfrom
melbit-michaelw:f-aws_ssm_resource_data_sync

Conversation

@melbit-michaelw
Copy link
Copy Markdown
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #18330

Output from acceptance testing:

$ make testacc TESTS=TestAccXXX PKG=ec2

...

Unfortunately, the AWS API doesn't return the information (or lack thereof) about the DestinationDataSharing configuration. As a result, I've had to make the assumption that the information in the state file is accurate, and use that in conjunction with the data returned as part of the Read.

This works successfully in that adding or removing the destination_data_sharing_type from the configuration will trigger a destroy/create with the new value, but doesn't work for importing (since there is no information about whether it is an Organization data sharing type).

I don't know whether this is the right approach, and I couldn't find anything similar to use as an example, so I'm looking for guidance on whether I've done the right thing (in which case I'll try to come up with some suitable tests, but that might be difficult since they'll require an Organization in order to test that functionality).

@github-actions github-actions Bot added needs-triage Waiting for first response or review from a maintainer. service/ssm Issues and PRs that pertain to the ssm service. size/S Managed by automation to categorize the size of a PR. labels Dec 1, 2021
@melbit-michaelw melbit-michaelw changed the title Add DestinationDataSharingType functionality aws_ssm_resource_data_sync - Add DestinationDataSharingType Dec 1, 2021
@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 23, 2022
@dhohengassner
Copy link
Copy Markdown

@melbit-michaelw nice job - was going to prepare something similar 👍

Think if we do not get the info from API not much we can do on the input 😄

Would be great to get some feedback from Hashicorp or get this merged soon. Any updates here?

@melbit-michaelw
Copy link
Copy Markdown
Contributor Author

@jar-b / @YakDriver / @ewbankkit - Apologies for reaching out directly, but this has been sitting for over a year with no feedback.

It's probably not in a suitable state for merging since it doesn't have tests which is why I've left it as 'draft', but if I could please get some feedback on whether the approach taken is suitable given the limitations of what's returned by the AWS API, I can investigate adding tests and/or re-working based on the feedback if a more suitable approach is identified.

Thank you for your time.

@arongate
Copy link
Copy Markdown

Hello, any news on this ?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

This draft pull request is being closed because it has been inactive for 60 days ⏳. This helps our maintainers find and focus on active contributions.

If you would like to continue working on this, please reopen the pull request and mark it as ready for review when complete. Thank you!

@github-actions github-actions Bot closed this May 6, 2026
@gdavison gdavison reopened this May 8, 2026
@github-actions github-actions Bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels May 8, 2026
@github-actions github-actions Bot added documentation Introduces or discusses updates to documentation. size/XL Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels May 20, 2026
@gdavison gdavison marked this pull request as ready for review May 20, 2026 21:18
@gdavison gdavison requested a review from a team as a code owner May 20, 2026 21:18
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible.

@gdavison
Copy link
Copy Markdown
Contributor

Acceptance test results

Single account:

$ make testacc PKG=ssm TESTS=TestAccSSMResourceDataSync_

--- SKIP: TestAccSSMResourceDataSync_DestinationDataSharing_organization (0.33s)
--- PASS: TestAccSSMResourceDataSync_disappears (28.65s)
--- PASS: TestAccSSMResourceDataSync_basic (34.63s)
--- PASS: TestAccSSMResourceDataSync_DestinationDataSharing_sameAccount (34.87s)
--- PASS: TestAccSSMResourceDataSync_DestinationDataSharing_add (45.44s)
--- PASS: TestAccSSMResourceDataSync_DestinationDataSharing_remove (45.53s)
--- PASS: TestAccSSMResourceDataSync_Update_s3DestinationPrefix (47.97s)

Organization:

$ make testacc PKG=ssm TESTS=TestAccSSMResourceDataSync_DestinationDataSharing_organization AWS_PROFILE=<org member account> AWS_ALTERNATE_PROFILE=<org management account>

--- PASS: TestAccSSMResourceDataSync_DestinationDataSharing_organization (56.42s)

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 🚀.

@gdavison gdavison merged commit 4a64071 into hashicorp:main May 21, 2026
50 checks passed
@github-actions
Copy link
Copy Markdown
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.47.0 milestone May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. 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.

Implement DestinationDataSharing for aws_ssm_resource_data_sync

7 participants