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 with version #37832

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Jun 4, 2024

Description

Fixes bug introduced in v5.49.0 via #37481 preventing import with version.

Relations

Closes #37812.

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.22.2 test ./internal/service/ssm/... -v -count 1 -parallel 4  -run=TestAccSSMParameter_ -timeout 360m
=== 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_tags
=== PAUSE TestAccSSMParameter_tags
=== 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
=== CONT  TestAccSSMParameter_basic
=== CONT  TestAccSSMParameter_Overwrite_removeAttribute
=== CONT  TestAccSSMParameter_Secure_insecure
=== CONT  TestAccSSMParameter_DataType_update
--- PASS: TestAccSSMParameter_Overwrite_removeAttribute (39.10s)
=== CONT  TestAccSSMParameter_Secure_keyUpdate
--- PASS: TestAccSSMParameter_basic (18.12s)
=== CONT  TestAccSSMParameter_changeNameForcesNew
--- PASS: TestAccSSMParameter_Secure_insecure (29.46s)
=== CONT  TestAccSSMParameter_Secure_basic
--- PASS: TestAccSSMParameter_Secure_keyUpdate (23.83s)
=== CONT  TestAccSSMParameter_fullPath
--- PASS: TestAccSSMParameter_changeNameForcesNew (21.19s)
=== CONT  TestAccSSMParameter_DataType_ec2Image
--- PASS: TestAccSSMParameter_Secure_basic (12.96s)
=== CONT  TestAccSSMParameter_DataType_ssmIntegration
--- PASS: TestAccSSMParameter_fullPath (12.69s)
=== CONT  TestAccSSMParameter_Secure_insecureChangeSecure
--- PASS: TestAccSSMParameter_DataType_ssmIntegration (13.14s)
=== CONT  TestAccSSMParameter_Secure_key
=== CONT  TestAccSSMParameter_Tier_intelligentTieringOnUpdate
--- PASS: TestAccSSMParameter_Secure_key (15.09s)
--- PASS: TestAccSSMParameter_Secure_insecureChangeSecure (27.49s)
=== CONT  TestAccSSMParameter_Overwrite_updateToTags
--- PASS: TestAccSSMParameter_DataType_update (73.80s)
=== CONT  TestAccSSMParameter_Overwrite_noOverwriteTags
--- PASS: TestAccSSMParameter_DataType_ec2Image (35.86s)
=== CONT  TestAccSSMParameter_Overwrite_tags
--- PASS: TestAccSSMParameter_Overwrite_noOverwriteTags (13.09s)
=== CONT  TestAccSSMParameter_Overwrite_cascade
--- PASS: TestAccSSMParameter_Overwrite_tags (13.21s)
=== CONT  TestAccSSMParameter_Overwrite_basic
--- PASS: TestAccSSMParameter_Tier_intelligentTieringOnUpdate (19.53s)
=== CONT  TestAccSSMParameter_disappears
--- PASS: TestAccSSMParameter_Overwrite_updateToTags (21.50s)
=== CONT  TestAccSSMParameter_updateType
--- PASS: TestAccSSMParameter_disappears (10.92s)
=== CONT  TestAccSSMParameter_Overwrite_updateDescription
--- PASS: TestAccSSMParameter_Overwrite_cascade (25.06s)
=== CONT  TestAccSSMParameter_tier
--- PASS: TestAccSSMParameter_updateType (21.69s)
=== CONT  TestAccSSMParameter_Tier_intelligentTieringOnCreation
--- PASS: TestAccSSMParameter_Overwrite_basic (30.28s)
=== CONT  TestAccSSMParameter_Tier_intelligentTieringToAdvanced
--- PASS: TestAccSSMParameter_Overwrite_updateDescription (21.79s)
=== CONT  TestAccSSMParameter_Tier_intelligentTieringToStandard
--- PASS: TestAccSSMParameter_Tier_intelligentTieringOnCreation (13.62s)
=== CONT  TestAccSSMParameter_updateValue
--- PASS: TestAccSSMParameter_tier (31.00s)
=== CONT  TestAccSSMParameter_updateDescription
--- PASS: TestAccSSMParameter_Tier_intelligentTieringToAdvanced (31.26s)
=== CONT  TestAccSSMParameter_multiple
--- PASS: TestAccSSMParameter_Tier_intelligentTieringToStandard (29.50s)
=== CONT  TestAccSSMParameter_tags
--- PASS: TestAccSSMParameter_updateValue (24.59s)
--- PASS: TestAccSSMParameter_multiple (18.36s)
--- PASS: TestAccSSMParameter_updateDescription (25.60s)
--- PASS: TestAccSSMParameter_tags (30.61s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ssm	187.136s

Copy link

github-actions bot commented Jun 4, 2024

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 size/XS Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/ssm Issues and PRs that pertain to the ssm service. labels Jun 4, 2024
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Jun 4, 2024
@ewbankkit ewbankkit added the bug Addresses a defect in current functionality. label Jun 4, 2024
@ewbankkit ewbankkit merged commit 0e8c5f2 into main Jun 5, 2024
66 checks passed
@ewbankkit ewbankkit deleted the b-aws_ssm_parameter-import-with-version branch June 5, 2024 15:01
@github-actions github-actions bot added this to the v5.53.0 milestone Jun 5, 2024
github-actions bot pushed a commit that referenced this pull request Jun 5, 2024
Copy link

github-actions bot commented Jun 7, 2024

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

github-actions bot commented Jul 8, 2024

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 Jul 8, 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. size/XS 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.

[Bug]: Importing versioned SSM parameters broken since v5.50.0
1 participant