-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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: Mark version
as computed when value changes
#22522
Conversation
Ensure we refresh the `version` field when updating the contents of an SSM parameter. Fixes hashicorp#12213. (Drive-by: Correct use of inconsistent resources in `TestAccSSMParameter_overwrite` test phases.) Acceptance test output: $ make testacc TESTS=TestAccSSMParameter_overwrite PKG=ssm ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/ssm/... -v -count 1 -parallel 20 -run='TestAccSSMParameter_overwrite' -timeout 180m === RUN TestAccSSMParameter_overwrite === PAUSE TestAccSSMParameter_overwrite === RUN TestAccSSMParameter_overwriteCascade === PAUSE TestAccSSMParameter_overwriteCascade === RUN TestAccSSMParameter_overwriteWithTags === PAUSE TestAccSSMParameter_overwriteWithTags === CONT TestAccSSMParameter_overwrite === CONT TestAccSSMParameter_overwriteCascade === CONT TestAccSSMParameter_overwriteWithTags --- PASS: TestAccSSMParameter_overwriteWithTags (34.18s) --- PASS: TestAccSSMParameter_overwrite (56.54s) --- PASS: TestAccSSMParameter_overwriteCascade (87.87s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ssm 87.972s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @argggh 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTS=TestAccSSMParameter_ PKG=ssm
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ssm/... -v -count 1 -parallel 20 -run='TestAccSSMParameter_' -timeout 180m
=== RUN TestAccSSMParameter_basic
=== PAUSE TestAccSSMParameter_basic
=== RUN TestAccSSMParameter_tier
=== PAUSE TestAccSSMParameter_tier
=== RUN TestAccSSMParameter_Tier_intelligentTieringToStandard
=== PAUSE TestAccSSMParameter_Tier_intelligentTieringToStandard
=== RUN TestAccSSMParameter_Tier_intelligentTieringToAdvanced
=== PAUSE TestAccSSMParameter_Tier_intelligentTieringToAdvanced
=== RUN TestAccSSMParameter_disappears
=== PAUSE TestAccSSMParameter_disappears
=== RUN TestAccSSMParameter_overwrite
=== PAUSE TestAccSSMParameter_overwrite
=== RUN TestAccSSMParameter_overwriteCascade
=== PAUSE TestAccSSMParameter_overwriteCascade
=== RUN TestAccSSMParameter_overwriteWithTags
=== PAUSE TestAccSSMParameter_overwriteWithTags
=== RUN TestAccSSMParameter_noOverwriteWithTags
=== PAUSE TestAccSSMParameter_noOverwriteWithTags
=== RUN TestAccSSMParameter_updateToOverwriteWithTags
=== PAUSE TestAccSSMParameter_updateToOverwriteWithTags
=== RUN TestAccSSMParameter_tags
=== PAUSE TestAccSSMParameter_tags
=== RUN TestAccSSMParameter_updateType
=== PAUSE TestAccSSMParameter_updateType
=== RUN TestAccSSMParameter_updateDescription
=== PAUSE TestAccSSMParameter_updateDescription
=== RUN TestAccSSMParameter_changeNameForcesNew
=== PAUSE TestAccSSMParameter_changeNameForcesNew
=== RUN TestAccSSMParameter_fullPath
=== PAUSE TestAccSSMParameter_fullPath
=== RUN TestAccSSMParameter_secure
=== PAUSE TestAccSSMParameter_secure
=== RUN TestAccSSMParameter_DataType_awsEC2Image
=== PAUSE TestAccSSMParameter_DataType_awsEC2Image
=== RUN TestAccSSMParameter_secureWithKey
=== PAUSE TestAccSSMParameter_secureWithKey
=== RUN TestAccSSMParameter_Secure_keyUpdate
=== PAUSE TestAccSSMParameter_Secure_keyUpdate
=== CONT TestAccSSMParameter_basic
=== CONT TestAccSSMParameter_tags
=== CONT TestAccSSMParameter_overwrite
=== CONT TestAccSSMParameter_updateToOverwriteWithTags
=== CONT TestAccSSMParameter_noOverwriteWithTags
=== CONT TestAccSSMParameter_overwriteWithTags
=== CONT TestAccSSMParameter_overwriteCascade
=== CONT TestAccSSMParameter_Tier_intelligentTieringToAdvanced
=== CONT TestAccSSMParameter_secure
=== CONT TestAccSSMParameter_Secure_keyUpdate
=== CONT TestAccSSMParameter_secureWithKey
=== CONT TestAccSSMParameter_disappears
=== CONT TestAccSSMParameter_DataType_awsEC2Image
=== CONT TestAccSSMParameter_changeNameForcesNew
=== CONT TestAccSSMParameter_Tier_intelligentTieringToStandard
=== CONT TestAccSSMParameter_fullPath
=== CONT TestAccSSMParameter_updateDescription
=== CONT TestAccSSMParameter_tier
=== CONT TestAccSSMParameter_updateType
--- PASS: TestAccSSMParameter_disappears (36.52s)
--- PASS: TestAccSSMParameter_secure (48.07s)
--- PASS: TestAccSSMParameter_overwriteWithTags (48.26s)
--- PASS: TestAccSSMParameter_noOverwriteWithTags (53.08s)
--- PASS: TestAccSSMParameter_fullPath (53.32s)
--- PASS: TestAccSSMParameter_basic (53.45s)
--- PASS: TestAccSSMParameter_secureWithKey (55.48s)
--- PASS: TestAccSSMParameter_DataType_awsEC2Image (67.67s)
--- PASS: TestAccSSMParameter_changeNameForcesNew (75.75s)
--- PASS: TestAccSSMParameter_updateDescription (76.22s)
--- PASS: TestAccSSMParameter_overwrite (76.22s)
--- PASS: TestAccSSMParameter_updateType (76.22s)
--- PASS: TestAccSSMParameter_updateToOverwriteWithTags (76.22s)
--- PASS: TestAccSSMParameter_Secure_keyUpdate (79.72s)
--- PASS: TestAccSSMParameter_overwriteCascade (83.19s)
--- PASS: TestAccSSMParameter_Tier_intelligentTieringToStandard (85.47s)
--- PASS: TestAccSSMParameter_tags (89.02s)
--- PASS: TestAccSSMParameter_tier (90.01s)
--- PASS: TestAccSSMParameter_Tier_intelligentTieringToAdvanced (94.11s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ssm 98.034s
This functionality has been released in v3.72.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! |
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. |
Ensure we refresh the
version
field when updating the contents of an SSM parameter. (Drive-by: Correct use of inconsistentresources in
TestAccSSMParameter_overwrite
test phases.)Community Note
Closes #12213.
Output from acceptance testing: