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_finspace_kx_dataview: properly set arn, enabling tagging #34998

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

jar-b
Copy link
Member

@jar-b jar-b commented Dec 19, 2023

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 when tags were set in configuration. If in the future DataviewArn 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

% make testacc PKG=finspace TESTS=TestAccFinSpaceKxDataview_ ACCTEST_PARALELLISM=1
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/finspace/... -v -count 1 -parallel 20 -run='TestAccFinSpaceKxDataview_'  -timeout 360m

--- PASS: TestAccFinSpaceKxDataview_disappears (996.11s)
--- PASS: TestAccFinSpaceKxDataview_basic (1184.87s)
--- PASS: TestAccFinSpaceKxDataview_tags (1185.46s)
--- PASS: TestAccFinSpaceKxDataview_withKxVolume (1848.14s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/finspace   1851.539s

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 size/M Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. provider Pertains to the provider itself, rather than any interaction with AWS. service/finspace Issues and PRs that pertain to the finspace service. labels Dec 19, 2023
@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 Dec 19, 2023
Copy link

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.
@jar-b jar-b force-pushed the f-finspace_kx_dataview-tags branch from de788a3 to f487eae Compare December 19, 2023 21:16
Copy link
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 🚀.

% 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

@jar-b jar-b merged commit 68c4405 into main Dec 21, 2023
53 checks passed
@jar-b jar-b deleted the f-finspace_kx_dataview-tags branch December 21, 2023 16:27
@github-actions github-actions bot added this to the v5.32.0 milestone Dec 21, 2023
github-actions bot pushed a commit that referenced this pull request Dec 21, 2023
Copy link

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!

@justinretzolk justinretzolk added the bug Addresses a defect in current functionality. label Feb 10, 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 Mar 12, 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. documentation Introduces or discusses updates to documentation. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. provider Pertains to the provider itself, rather than any interaction with AWS. service/finspace Issues and PRs that pertain to the finspace service. size/M 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]: r/aws_finspace_kx_dataview: tags are not supported
3 participants