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

F aws db snapshot data source tags filter #31600

Merged

Conversation

rromic
Copy link
Contributor

@rromic rromic commented May 26, 2023

Description

This feature provides support for filtering db snapshots by provided tags and not db_instance_identifier or db_snapshot_identifier are not required attributes to allow greater flexibility in filter capabilities.

Relations

Closes #10010.
Closes #32597.

References

Output from Acceptance Testing

export AWS_DEFAULT_REGION=eu-central-1
make testacc TESTS=TestAccRDSSnapshotDataSource_basic PKG=rds
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSSnapshotDataSource_basic'  -timeout 180m
=== RUN   TestAccRDSSnapshotDataSource_basic
=== PAUSE TestAccRDSSnapshotDataSource_basic
=== CONT  TestAccRDSSnapshotDataSource_basic
--- PASS: TestAccRDSSnapshotDataSource_basic (456.43s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/rds        458.566s


...

@github-actions
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 documentation Introduces or discusses updates to documentation. service/rds Issues and PRs that pertain to the rds service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. labels May 26, 2023
@rromic rromic force-pushed the f-aws_db_snapshot_data_source-tags-filter branch from 06b9ce5 to 2a1607f Compare May 26, 2023 14:55
@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels May 26, 2023
# Conflicts:
#	internal/service/rds/snapshot_data_source.go
#	website/docs/d/db_snapshot.html.markdown
% make testacc TESTARGS='-run=TestAccRDSSnapshotDataSource_' PKG=rds ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 2  -run=TestAccRDSSnapshotDataSource_ -timeout 180m
=== RUN   TestAccRDSSnapshotDataSource_basic
=== PAUSE TestAccRDSSnapshotDataSource_basic
=== CONT  TestAccRDSSnapshotDataSource_basic
--- PASS: TestAccRDSSnapshotDataSource_basic (522.49s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rds	527.693s
% make testacc TESTARGS='-run=TestAccRDSSnapshotDataSource_' PKG=rds ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 2  -run=TestAccRDSSnapshotDataSource_ -timeout 180m
=== RUN   TestAccRDSSnapshotDataSource_basic
=== PAUSE TestAccRDSSnapshotDataSource_basic
=== CONT  TestAccRDSSnapshotDataSource_basic
--- PASS: TestAccRDSSnapshotDataSource_basic (757.85s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rds	762.735s
@github-actions github-actions bot removed the size/M Managed by automation to categorize the size of a PR. label Jul 31, 2023
@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. size/M Managed by automation to categorize the size of a PR. generators Relates to code generators. service/inspector2 Issues and PRs that pertain to the inspector2 service. and removed size/XL Managed by automation to categorize the size of a PR. labels Jul 31, 2023
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 🚀.

% make testacc TESTARGS='-run=TestAccRDSSnapshot' PKG=rds ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 2  -run=TestAccRDSSnapshot -timeout 180m
=== RUN   TestAccRDSSnapshotCopy_basic
=== PAUSE TestAccRDSSnapshotCopy_basic
=== RUN   TestAccRDSSnapshotCopy_tags
=== PAUSE TestAccRDSSnapshotCopy_tags
=== RUN   TestAccRDSSnapshotCopy_disappears
=== PAUSE TestAccRDSSnapshotCopy_disappears
=== RUN   TestAccRDSSnapshotDataSource_basic
=== PAUSE TestAccRDSSnapshotDataSource_basic
=== RUN   TestAccRDSSnapshot_basic
=== PAUSE TestAccRDSSnapshot_basic
=== RUN   TestAccRDSSnapshot_share
=== PAUSE TestAccRDSSnapshot_share
=== RUN   TestAccRDSSnapshot_tags
=== PAUSE TestAccRDSSnapshot_tags
=== RUN   TestAccRDSSnapshot_disappears
=== PAUSE TestAccRDSSnapshot_disappears
=== CONT  TestAccRDSSnapshotCopy_basic
=== CONT  TestAccRDSSnapshot_basic
--- PASS: TestAccRDSSnapshotCopy_basic (712.41s)
=== CONT  TestAccRDSSnapshotCopy_disappears
--- PASS: TestAccRDSSnapshot_basic (756.76s)
=== CONT  TestAccRDSSnapshotDataSource_basic
--- PASS: TestAccRDSSnapshotCopy_disappears (688.54s)
=== CONT  TestAccRDSSnapshot_tags
--- PASS: TestAccRDSSnapshotDataSource_basic (678.49s)
=== CONT  TestAccRDSSnapshot_disappears
--- PASS: TestAccRDSSnapshot_disappears (641.28s)
=== CONT  TestAccRDSSnapshot_share
--- PASS: TestAccRDSSnapshot_tags (742.74s)
=== CONT  TestAccRDSSnapshotCopy_tags
--- PASS: TestAccRDSSnapshot_share (731.15s)
--- PASS: TestAccRDSSnapshotCopy_tags (953.53s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rds	3102.298s
% make testacc TESTARGS='-run=TestAccRDSInstanceAutomatedBackupsReplication_' PKG=rds ACCTEST_PARALLELISM=2 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 2  -run=TestAccRDSInstanceAutomatedBackupsReplication_ -timeout 180m
=== RUN   TestAccRDSInstanceAutomatedBackupsReplication_basic
=== PAUSE TestAccRDSInstanceAutomatedBackupsReplication_basic
=== RUN   TestAccRDSInstanceAutomatedBackupsReplication_disappears
=== PAUSE TestAccRDSInstanceAutomatedBackupsReplication_disappears
=== RUN   TestAccRDSInstanceAutomatedBackupsReplication_retentionPeriod
=== PAUSE TestAccRDSInstanceAutomatedBackupsReplication_retentionPeriod
=== RUN   TestAccRDSInstanceAutomatedBackupsReplication_kmsEncrypted
=== PAUSE TestAccRDSInstanceAutomatedBackupsReplication_kmsEncrypted
=== CONT  TestAccRDSInstanceAutomatedBackupsReplication_basic
=== CONT  TestAccRDSInstanceAutomatedBackupsReplication_retentionPeriod
--- PASS: TestAccRDSInstanceAutomatedBackupsReplication_basic (1261.14s)
=== CONT  TestAccRDSInstanceAutomatedBackupsReplication_kmsEncrypted
--- PASS: TestAccRDSInstanceAutomatedBackupsReplication_retentionPeriod (1343.06s)
=== CONT  TestAccRDSInstanceAutomatedBackupsReplication_disappears
--- PASS: TestAccRDSInstanceAutomatedBackupsReplication_disappears (1413.86s)
--- PASS: TestAccRDSInstanceAutomatedBackupsReplication_kmsEncrypted (1621.66s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rds	2887.740s

@ewbankkit ewbankkit merged commit 7389000 into hashicorp:main Jul 31, 2023
@github-actions github-actions bot added this to the v5.11.0 milestone Jul 31, 2023
@rromic
Copy link
Contributor Author

rromic commented Aug 1, 2023

@ewbankkit Awesome! Thank you!

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

This functionality has been released in v5.11.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
Copy link

github-actions bot commented Sep 3, 2023

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 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. generators Relates to code generators. service/inspector2 Issues and PRs that pertain to the inspector2 service. service/rds Issues and PRs that pertain to the rds 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
3 participants