Skip to content

add database_insights_mode to db_instance #41828

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

Merged

Conversation

luchees
Copy link
Contributor

@luchees luchees commented Mar 13, 2025

Description

Add database_insights_mode to db_instance resource. Smart copying mostly from 41254

database_insights_mode - (Optional) The mode of Database Insights that is enabled for the instance. Valid values: 'standard','advanced' .

Usage

resource "aws_db_instance" "db_example" {
  db_identifier           = "db_example"
  performance_insights_enabled = true
  ...
  database_insights_mode = "advanced"
}

Relations

Closes #41607

References

41254

Output from Acceptance Testing

Did not run

@luchees luchees requested a review from a team as a code owner March 13, 2025 16:30
Copy link
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • 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 needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/rds Issues and PRs that pertain to the rds service. size/M Managed by automation to categorize the size of a PR. labels Mar 13, 2025
@luchees luchees force-pushed the f-aws_db_instance-databaseinsightsmode branch from 310dfe0 to 72ce1b8 Compare March 13, 2025 16:33
@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 Mar 13, 2025
@ewbankkit ewbankkit self-assigned this Mar 13, 2025
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Mar 13, 2025
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=TestAccRDSInstanceDataSource_basic\|TestAccRDSInstance_basic\|TestAccRDSInstance_PerformanceInsights_databaseInsightsMode' PKG=rds ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.7 test ./internal/service/rds/... -v -count 1 -parallel 3  -run=TestAccRDSInstanceDataSource_basic\|TestAccRDSInstance_basic\|TestAccRDSInstance_PerformanceInsights_databaseInsightsMode -timeout 360m -vet=off
2025/03/13 14:55:39 Initializing Terraform AWS Provider...
=== RUN   TestAccRDSInstanceDataSource_basic
=== PAUSE TestAccRDSInstanceDataSource_basic
=== RUN   TestAccRDSInstance_basic
=== PAUSE TestAccRDSInstance_basic
=== RUN   TestAccRDSInstance_PerformanceInsights_databaseInsightsMode
=== PAUSE TestAccRDSInstance_PerformanceInsights_databaseInsightsMode
=== CONT  TestAccRDSInstanceDataSource_basic
=== CONT  TestAccRDSInstance_PerformanceInsights_databaseInsightsMode
=== CONT  TestAccRDSInstance_basic
--- PASS: TestAccRDSInstance_basic (482.48s)
--- PASS: TestAccRDSInstanceDataSource_basic (516.07s)
--- PASS: TestAccRDSInstance_PerformanceInsights_databaseInsightsMode (796.97s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rds	802.739s

@ewbankkit
Copy link
Contributor

@luchees Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 3c7da8f into hashicorp:main Mar 13, 2025
46 checks passed
Copy link
Contributor

Warning

This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v5.92.0 milestone Mar 13, 2025
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Mar 20, 2025
Copy link
Contributor

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

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 Apr 20, 2025
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/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.

[Enhancement]: aws_db_instance: Database Performance Insights Advanced Mode
4 participants