Skip to content
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_ssm_parameter: Fix import by ARN #39067

Merged
merged 6 commits into from
Aug 28, 2024
Merged

r/aws_ssm_parameter: Fix import by ARN #39067

merged 6 commits into from
Aug 28, 2024

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Aug 28, 2024

Description

Fixes bug introduced in v5.49.0 via #37481 preventing deletion of resources imported by ARN.

Relations

Closes #39050.

Output from Acceptance Testing

% make testacc TESTARGS='-run=TestAccSSMParameter_' PKG=ssm ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.0 test ./internal/service/ssm/... -v -count 1 -parallel 4  -run=TestAccSSMParameter_ -timeout 360m
=== RUN   TestAccSSMParameter_tags
=== PAUSE TestAccSSMParameter_tags
=== RUN   TestAccSSMParameter_tags_null
=== PAUSE TestAccSSMParameter_tags_null
=== RUN   TestAccSSMParameter_tags_AddOnUpdate
=== PAUSE TestAccSSMParameter_tags_AddOnUpdate
=== RUN   TestAccSSMParameter_tags_EmptyTag_OnCreate
=== PAUSE TestAccSSMParameter_tags_EmptyTag_OnCreate
=== RUN   TestAccSSMParameter_tags_EmptyTag_OnUpdate_Add
=== PAUSE TestAccSSMParameter_tags_EmptyTag_OnUpdate_Add
=== RUN   TestAccSSMParameter_tags_EmptyTag_OnUpdate_Replace
=== PAUSE TestAccSSMParameter_tags_EmptyTag_OnUpdate_Replace
=== RUN   TestAccSSMParameter_tags_DefaultTags_providerOnly
=== PAUSE TestAccSSMParameter_tags_DefaultTags_providerOnly
=== RUN   TestAccSSMParameter_tags_DefaultTags_nonOverlapping
=== PAUSE TestAccSSMParameter_tags_DefaultTags_nonOverlapping
=== RUN   TestAccSSMParameter_tags_DefaultTags_overlapping
=== PAUSE TestAccSSMParameter_tags_DefaultTags_overlapping
=== RUN   TestAccSSMParameter_tags_DefaultTags_updateToProviderOnly
=== PAUSE TestAccSSMParameter_tags_DefaultTags_updateToProviderOnly
=== RUN   TestAccSSMParameter_tags_DefaultTags_updateToResourceOnly
=== PAUSE TestAccSSMParameter_tags_DefaultTags_updateToResourceOnly
=== RUN   TestAccSSMParameter_tags_DefaultTags_emptyResourceTag
=== PAUSE TestAccSSMParameter_tags_DefaultTags_emptyResourceTag
=== RUN   TestAccSSMParameter_tags_DefaultTags_emptyProviderOnlyTag
=== PAUSE TestAccSSMParameter_tags_DefaultTags_emptyProviderOnlyTag
=== RUN   TestAccSSMParameter_tags_DefaultTags_nullOverlappingResourceTag
=== PAUSE TestAccSSMParameter_tags_DefaultTags_nullOverlappingResourceTag
=== RUN   TestAccSSMParameter_tags_DefaultTags_nullNonOverlappingResourceTag
=== PAUSE TestAccSSMParameter_tags_DefaultTags_nullNonOverlappingResourceTag
=== RUN   TestAccSSMParameter_tags_ComputedTag_OnCreate
=== PAUSE TestAccSSMParameter_tags_ComputedTag_OnCreate
=== RUN   TestAccSSMParameter_tags_ComputedTag_OnUpdate_Add
=== PAUSE TestAccSSMParameter_tags_ComputedTag_OnUpdate_Add
=== RUN   TestAccSSMParameter_tags_ComputedTag_OnUpdate_Replace
=== PAUSE TestAccSSMParameter_tags_ComputedTag_OnUpdate_Replace
=== RUN   TestAccSSMParameter_basic
=== PAUSE TestAccSSMParameter_basic
=== RUN   TestAccSSMParameter_multiple
=== PAUSE TestAccSSMParameter_multiple
=== RUN   TestAccSSMParameter_updateValue
=== PAUSE TestAccSSMParameter_updateValue
=== RUN   TestAccSSMParameter_updateDescription
=== PAUSE TestAccSSMParameter_updateDescription
=== RUN   TestAccSSMParameter_tier
=== PAUSE TestAccSSMParameter_tier
=== RUN   TestAccSSMParameter_Tier_intelligentTieringToStandard
=== PAUSE TestAccSSMParameter_Tier_intelligentTieringToStandard
=== RUN   TestAccSSMParameter_Tier_intelligentTieringToAdvanced
=== PAUSE TestAccSSMParameter_Tier_intelligentTieringToAdvanced
=== RUN   TestAccSSMParameter_Tier_intelligentTieringOnCreation
=== PAUSE TestAccSSMParameter_Tier_intelligentTieringOnCreation
=== RUN   TestAccSSMParameter_Tier_intelligentTieringOnUpdate
=== PAUSE TestAccSSMParameter_Tier_intelligentTieringOnUpdate
=== RUN   TestAccSSMParameter_disappears
=== PAUSE TestAccSSMParameter_disappears
=== RUN   TestAccSSMParameter_Overwrite_basic
=== PAUSE TestAccSSMParameter_Overwrite_basic
=== RUN   TestAccSSMParameter_Overwrite_cascade
=== PAUSE TestAccSSMParameter_Overwrite_cascade
=== RUN   TestAccSSMParameter_Overwrite_tags
=== PAUSE TestAccSSMParameter_Overwrite_tags
=== RUN   TestAccSSMParameter_Overwrite_noOverwriteTags
=== PAUSE TestAccSSMParameter_Overwrite_noOverwriteTags
=== RUN   TestAccSSMParameter_Overwrite_updateToTags
=== PAUSE TestAccSSMParameter_Overwrite_updateToTags
=== RUN   TestAccSSMParameter_Overwrite_removeAttribute
=== PAUSE TestAccSSMParameter_Overwrite_removeAttribute
=== RUN   TestAccSSMParameter_updateType
=== PAUSE TestAccSSMParameter_updateType
=== RUN   TestAccSSMParameter_Overwrite_updateDescription
=== PAUSE TestAccSSMParameter_Overwrite_updateDescription
=== RUN   TestAccSSMParameter_changeNameForcesNew
=== PAUSE TestAccSSMParameter_changeNameForcesNew
=== RUN   TestAccSSMParameter_fullPath
=== PAUSE TestAccSSMParameter_fullPath
=== RUN   TestAccSSMParameter_Secure_basic
=== PAUSE TestAccSSMParameter_Secure_basic
=== RUN   TestAccSSMParameter_Secure_insecure
=== PAUSE TestAccSSMParameter_Secure_insecure
=== RUN   TestAccSSMParameter_Secure_insecureChangeSecure
=== PAUSE TestAccSSMParameter_Secure_insecureChangeSecure
=== RUN   TestAccSSMParameter_DataType_ec2Image
=== PAUSE TestAccSSMParameter_DataType_ec2Image
=== RUN   TestAccSSMParameter_DataType_ssmIntegration
=== PAUSE TestAccSSMParameter_DataType_ssmIntegration
=== RUN   TestAccSSMParameter_DataType_update
=== PAUSE TestAccSSMParameter_DataType_update
=== RUN   TestAccSSMParameter_Secure_key
=== PAUSE TestAccSSMParameter_Secure_key
=== RUN   TestAccSSMParameter_Secure_keyUpdate
=== PAUSE TestAccSSMParameter_Secure_keyUpdate
=== RUN   TestAccSSMParameter_importByARN
=== PAUSE TestAccSSMParameter_importByARN
=== CONT  TestAccSSMParameter_tags
=== CONT  TestAccSSMParameter_Tier_intelligentTieringToAdvanced
=== CONT  TestAccSSMParameter_changeNameForcesNew
=== CONT  TestAccSSMParameter_tags_DefaultTags_emptyProviderOnlyTag
--- PASS: TestAccSSMParameter_tags_DefaultTags_emptyProviderOnlyTag (13.35s)
=== CONT  TestAccSSMParameter_tags_DefaultTags_providerOnly
--- PASS: TestAccSSMParameter_changeNameForcesNew (20.29s)
=== CONT  TestAccSSMParameter_tags_DefaultTags_emptyResourceTag
--- PASS: TestAccSSMParameter_Tier_intelligentTieringToAdvanced (28.40s)
=== CONT  TestAccSSMParameter_tags_DefaultTags_updateToResourceOnly
--- PASS: TestAccSSMParameter_tags_DefaultTags_emptyResourceTag (12.73s)
=== CONT  TestAccSSMParameter_tags_DefaultTags_updateToProviderOnly
--- PASS: TestAccSSMParameter_tags (45.58s)
=== CONT  TestAccSSMParameter_tags_DefaultTags_overlapping
--- PASS: TestAccSSMParameter_tags_DefaultTags_updateToResourceOnly (19.45s)
=== CONT  TestAccSSMParameter_tags_DefaultTags_nonOverlapping
--- PASS: TestAccSSMParameter_tags_DefaultTags_updateToProviderOnly (20.84s)
=== CONT  TestAccSSMParameter_DataType_ssmIntegration
--- PASS: TestAccSSMParameter_tags_DefaultTags_providerOnly (45.67s)
=== CONT  TestAccSSMParameter_importByARN
--- PASS: TestAccSSMParameter_DataType_ssmIntegration (11.59s)
=== CONT  TestAccSSMParameter_Secure_keyUpdate
--- PASS: TestAccSSMParameter_importByARN (11.65s)
=== CONT  TestAccSSMParameter_Secure_key
--- PASS: TestAccSSMParameter_tags_DefaultTags_overlapping (34.49s)
=== CONT  TestAccSSMParameter_DataType_update
--- PASS: TestAccSSMParameter_tags_DefaultTags_nonOverlapping (33.94s)
=== CONT  TestAccSSMParameter_Overwrite_tags
--- PASS: TestAccSSMParameter_Secure_key (13.86s)
=== CONT  TestAccSSMParameter_Overwrite_updateDescription
--- PASS: TestAccSSMParameter_Secure_keyUpdate (21.47s)
=== CONT  TestAccSSMParameter_updateType
--- PASS: TestAccSSMParameter_Overwrite_tags (11.86s)
=== CONT  TestAccSSMParameter_Overwrite_removeAttribute
--- PASS: TestAccSSMParameter_Overwrite_updateDescription (19.03s)
=== CONT  TestAccSSMParameter_Overwrite_updateToTags
--- PASS: TestAccSSMParameter_updateType (19.46s)
=== CONT  TestAccSSMParameter_Overwrite_noOverwriteTags
--- PASS: TestAccSSMParameter_Overwrite_noOverwriteTags (12.59s)
=== CONT  TestAccSSMParameter_tags_EmptyTag_OnCreate
--- PASS: TestAccSSMParameter_Overwrite_updateToTags (20.05s)
=== CONT  TestAccSSMParameter_tags_EmptyTag_OnUpdate_Replace
--- PASS: TestAccSSMParameter_Overwrite_removeAttribute (33.33s)
=== CONT  TestAccSSMParameter_tags_EmptyTag_OnUpdate_Add
--- PASS: TestAccSSMParameter_tags_EmptyTag_OnCreate (22.64s)
=== CONT  TestAccSSMParameter_basic
--- PASS: TestAccSSMParameter_tags_EmptyTag_OnUpdate_Replace (20.40s)
=== CONT  TestAccSSMParameter_Tier_intelligentTieringToStandard
--- PASS: TestAccSSMParameter_basic (14.28s)
=== CONT  TestAccSSMParameter_tier
--- PASS: TestAccSSMParameter_tags_EmptyTag_OnUpdate_Add (30.75s)
=== CONT  TestAccSSMParameter_updateDescription
--- PASS: TestAccSSMParameter_DataType_update (79.83s)
=== CONT  TestAccSSMParameter_updateValue
--- PASS: TestAccSSMParameter_Tier_intelligentTieringToStandard (25.32s)
=== CONT  TestAccSSMParameter_multiple
--- PASS: TestAccSSMParameter_updateDescription (22.52s)
=== CONT  TestAccSSMParameter_disappears
--- PASS: TestAccSSMParameter_updateValue (26.87s)
=== CONT  TestAccSSMParameter_Overwrite_cascade
--- PASS: TestAccSSMParameter_tier (31.29s)
=== CONT  TestAccSSMParameter_Overwrite_basic
--- PASS: TestAccSSMParameter_disappears (11.38s)
=== CONT  TestAccSSMParameter_tags_AddOnUpdate
--- PASS: TestAccSSMParameter_multiple (24.72s)
=== CONT  TestAccSSMParameter_Tier_intelligentTieringOnUpdate
--- PASS: TestAccSSMParameter_Overwrite_cascade (20.76s)
=== CONT  TestAccSSMParameter_Secure_insecure
--- PASS: TestAccSSMParameter_Tier_intelligentTieringOnUpdate (16.38s)
=== CONT  TestAccSSMParameter_DataType_ec2Image
--- PASS: TestAccSSMParameter_tags_AddOnUpdate (20.20s)
=== CONT  TestAccSSMParameter_Secure_insecureChangeSecure
--- PASS: TestAccSSMParameter_Overwrite_basic (25.56s)
=== CONT  TestAccSSMParameter_Secure_basic
--- PASS: TestAccSSMParameter_Secure_basic (11.67s)
=== CONT  TestAccSSMParameter_tags_ComputedTag_OnCreate
--- PASS: TestAccSSMParameter_Secure_insecure (23.75s)
=== CONT  TestAccSSMParameter_tags_ComputedTag_OnUpdate_Replace
--- PASS: TestAccSSMParameter_Secure_insecureChangeSecure (24.33s)
=== CONT  TestAccSSMParameter_tags_ComputedTag_OnUpdate_Add
--- PASS: TestAccSSMParameter_tags_ComputedTag_OnCreate (16.38s)
=== CONT  TestAccSSMParameter_tags_DefaultTags_nullNonOverlappingResourceTag
--- PASS: TestAccSSMParameter_tags_DefaultTags_nullNonOverlappingResourceTag (12.71s)
=== CONT  TestAccSSMParameter_fullPath
--- PASS: TestAccSSMParameter_tags_ComputedTag_OnUpdate_Replace (23.86s)
=== CONT  TestAccSSMParameter_Tier_intelligentTieringOnCreation
--- PASS: TestAccSSMParameter_DataType_ec2Image (45.68s)
=== CONT  TestAccSSMParameter_tags_DefaultTags_nullOverlappingResourceTag
--- PASS: TestAccSSMParameter_tags_ComputedTag_OnUpdate_Add (24.14s)
=== CONT  TestAccSSMParameter_tags_null
--- PASS: TestAccSSMParameter_fullPath (11.87s)
--- PASS: TestAccSSMParameter_Tier_intelligentTieringOnCreation (11.69s)
--- PASS: TestAccSSMParameter_tags_DefaultTags_nullOverlappingResourceTag (12.96s)
--- PASS: TestAccSSMParameter_tags_null (15.45s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ssm	280.604s

@ewbankkit ewbankkit requested a review from a team as a code owner August 28, 2024 14:02
Copy link

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • 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 tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/ssm Issues and PRs that pertain to the ssm service. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. labels Aug 28, 2024
@ewbankkit ewbankkit added the bug Addresses a defect in current functionality. label Aug 28, 2024
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 🚀

@ewbankkit ewbankkit merged commit d17b01a into main Aug 28, 2024
33 of 34 checks passed
@ewbankkit ewbankkit deleted the issue-39050 branch August 28, 2024 15:19
@github-actions github-actions bot added this to the v5.65.0 milestone Aug 28, 2024
terraform-aws-provider bot pushed a commit that referenced this pull request Aug 28, 2024
Copy link

This functionality has been released in v5.65.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 Aug 29, 2024
Copy link

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 Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ssm Issues and PRs that pertain to the ssm service. 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.

[Bug]: Error deleting SSM parameter after upgrading provider over v5.50.0
2 participants