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

Add Performance Insights options to aws_rds_cluster resource #29415

Merged

Conversation

tedsmitt
Copy link

Description

This PR adds the following options to the aws_rds_cluster resource

performance_insights_enabled
performance_insights_kms_key_id
performance_insights_retention_period

This option is only valid for Multi-AZ RDS Clusters, and isn't applicable for Aurora.

Relations

Closes #29414

References

docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings
docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.Enabling.html

Output from Acceptance Testing

$ make testacc TESTS=TestAccRDSCluster_performanceInsights* PKG=rds
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSCluster_performanceInsights*'  -timeout 180m
=== RUN   TestAccRDSCluster_performanceInsightsEnabled
=== PAUSE TestAccRDSCluster_performanceInsightsEnabled
=== RUN   TestAccRDSCluster_performanceInsightsKMSKeyID
=== PAUSE TestAccRDSCluster_performanceInsightsKMSKeyID
=== RUN   TestAccRDSCluster_performanceInsightsRetentionPeriod
=== PAUSE TestAccRDSCluster_performanceInsightsRetentionPeriod
=== CONT  TestAccRDSCluster_performanceInsightsEnabled
=== CONT  TestAccRDSCluster_performanceInsightsRetentionPeriod
=== CONT  TestAccRDSCluster_performanceInsightsKMSKeyID
--- PASS: TestAccRDSCluster_performanceInsightsRetentionPeriod (1945.58s)
--- PASS: TestAccRDSCluster_performanceInsightsKMSKeyID (1966.16s)
--- PASS: TestAccRDSCluster_performanceInsightsEnabled (2479.19s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/rds        2481.203s

@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 size/L Managed by automation to categorize the size of a PR. 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. needs-triage Waiting for first response or review from a maintainer. labels Feb 15, 2023
@tedsmitt tedsmitt changed the title Add Performance Insights options to aws_rds_cluster resource Add Performance Insights options to aws_rds_cluster resource Feb 15, 2023
@tedsmitt tedsmitt force-pushed the f-aws_rds_cluster-performance-insights branch from 6e57b85 to 582d68d Compare February 15, 2023 09:06
@breathingdust breathingdust 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 Apr 6, 2023
# Conflicts:
#	internal/service/rds/cluster.go
#	internal/service/rds/cluster_test.go
#	internal/service/rds/consts.go
#	website/docs/r/rds_cluster.html.markdown
@ewbankkit ewbankkit requested a review from a team as a code owner July 31, 2024 19:37
@ewbankkit ewbankkit self-assigned this Jul 31, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Jul 31, 2024
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=TestAccRDSCluster_performanceInsights\|TestAccRDSCluster_basic' PKG=rds ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/rds/... -v -count 1 -parallel 3  -run=TestAccRDSCluster_performanceInsights\|TestAccRDSCluster_basic -timeout 360m
=== RUN   TestAccRDSCluster_basic
=== PAUSE TestAccRDSCluster_basic
=== RUN   TestAccRDSCluster_performanceInsightsEnabled
=== PAUSE TestAccRDSCluster_performanceInsightsEnabled
=== RUN   TestAccRDSCluster_performanceInsightsKMSKeyID
=== PAUSE TestAccRDSCluster_performanceInsightsKMSKeyID
=== RUN   TestAccRDSCluster_performanceInsightsRetentionPeriod
=== PAUSE TestAccRDSCluster_performanceInsightsRetentionPeriod
=== CONT  TestAccRDSCluster_basic
=== CONT  TestAccRDSCluster_performanceInsightsKMSKeyID
=== CONT  TestAccRDSCluster_performanceInsightsEnabled
--- PASS: TestAccRDSCluster_basic (155.57s)
=== CONT  TestAccRDSCluster_performanceInsightsRetentionPeriod
--- PASS: TestAccRDSCluster_performanceInsightsKMSKeyID (1685.78s)
--- PASS: TestAccRDSCluster_performanceInsightsRetentionPeriod (1836.05s)
--- PASS: TestAccRDSCluster_performanceInsightsEnabled (2139.38s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rds	2144.389s
% ACCTEST_TIMEOUT=720m make testacc TESTARGS='-run=TestAccRDSInstanceAutomatedBackupsReplication_\|TestAccRDSEventCategoriesDataSource_' PKG=rds ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/rds/... -v -count 1 -parallel 3  -run=TestAccRDSInstanceAutomatedBackupsReplication_\|TestAccRDSEventCategoriesDataSource_ -timeout 720m
=== RUN   TestAccRDSEventCategoriesDataSource_basic
=== PAUSE TestAccRDSEventCategoriesDataSource_basic
=== RUN   TestAccRDSEventCategoriesDataSource_sourceType
=== PAUSE TestAccRDSEventCategoriesDataSource_sourceType
=== 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  TestAccRDSEventCategoriesDataSource_basic
=== CONT  TestAccRDSInstanceAutomatedBackupsReplication_disappears
=== CONT  TestAccRDSInstanceAutomatedBackupsReplication_basic
--- PASS: TestAccRDSEventCategoriesDataSource_basic (7.13s)
=== CONT  TestAccRDSEventCategoriesDataSource_sourceType
--- PASS: TestAccRDSEventCategoriesDataSource_sourceType (6.63s)
=== CONT  TestAccRDSInstanceAutomatedBackupsReplication_kmsEncrypted
--- PASS: TestAccRDSInstanceAutomatedBackupsReplication_disappears (1151.89s)
=== CONT  TestAccRDSInstanceAutomatedBackupsReplication_retentionPeriod
--- PASS: TestAccRDSInstanceAutomatedBackupsReplication_kmsEncrypted (1163.13s)
--- PASS: TestAccRDSInstanceAutomatedBackupsReplication_basic (1194.55s)
--- PASS: TestAccRDSInstanceAutomatedBackupsReplication_retentionPeriod (1205.91s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rds	2362.742s

@ewbankkit
Copy link
Contributor

@tedsmitt Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 8771da6 into hashicorp:main Aug 1, 2024
41 checks passed
@github-actions github-actions bot added this to the v5.61.0 milestone Aug 1, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Aug 2, 2024
Copy link

github-actions bot commented Aug 2, 2024

This functionality has been released in v5.61.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!

Copy link

github-actions bot commented Sep 1, 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 Sep 1, 2024
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. service/rds Issues and PRs that pertain to the rds service. size/L 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.

[Enhancement]: aws_rds_cluster Multi-AZ Cluster performance insights
3 participants