-
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_finspace_kx_dataview: properly set arn, enabling tagging #34998
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
Properly setting the arn attribute will allow transparent tagging to properly list tags on the underlying data view during read operations. This should fix persistent diffs when setting tags for this resource.
…ted resource list
de788a3
to
f487eae
Compare
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 🚀.
% ACCTEST_TIMEOUT=720m make testacc TESTARGS='-run=TestAccFinSpaceKxDataview_' PKG=finspace ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/finspace/... -v -count 1 -parallel 2 -run=TestAccFinSpaceKxDataview_ -timeout 720m
=== RUN TestAccFinSpaceKxDataview_basic
=== PAUSE TestAccFinSpaceKxDataview_basic
=== RUN TestAccFinSpaceKxDataview_disappears
=== PAUSE TestAccFinSpaceKxDataview_disappears
=== RUN TestAccFinSpaceKxDataview_tags
=== PAUSE TestAccFinSpaceKxDataview_tags
=== RUN TestAccFinSpaceKxDataview_withKxVolume
=== PAUSE TestAccFinSpaceKxDataview_withKxVolume
=== CONT TestAccFinSpaceKxDataview_basic
=== CONT TestAccFinSpaceKxDataview_tags
--- PASS: TestAccFinSpaceKxDataview_basic (1168.47s)
=== CONT TestAccFinSpaceKxDataview_disappears
--- PASS: TestAccFinSpaceKxDataview_tags (1169.21s)
=== CONT TestAccFinSpaceKxDataview_withKxVolume
--- PASS: TestAccFinSpaceKxDataview_disappears (1024.17s)
--- PASS: TestAccFinSpaceKxDataview_withKxVolume (1663.96s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/finspace 2838.432s
This functionality has been released in v5.32.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. |
Description
Composes a synthetic
arn
attribute on read to allow transparent tagging to properly list tags for dataview resources. Previously, read always returned an empty map of tags causing a persistent diff whentags
were set in configuration. If in the futureDataviewArn
is returned from the Describe API, the composed ARN value can be replaced with the value from the API response insead.Relations
Closes #34990
Relates #34828
References
Output from Acceptance Testing