From 7a7e32799e0034ba5e1927655dc05ebc00113444 Mon Sep 17 00:00:00 2001 From: Borislav Velkov Date: Mon, 14 Apr 2025 21:04:21 +0300 Subject: [PATCH 1/3] docs: Update variable description (#496) * docs: Update variable description https://aws.amazon.com/about-aws/whats-new/2024/09/amazon-rds-performance-insights-supports-aurora-cluster-level-configuration/ * Update README.md --- README.md | 6 +++--- variables.tf | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dd4bdc16..a25443c2 100644 --- a/README.md +++ b/README.md @@ -290,9 +290,9 @@ No modules. | [cluster\_ca\_cert\_identifier](#input\_cluster\_ca\_cert\_identifier) | The CA certificate identifier to use for the DB cluster's server certificate. Currently only supported for multi-az DB clusters | `string` | `null` | no | | [cluster\_members](#input\_cluster\_members) | List of RDS Instances that are a part of this cluster | `list(string)` | `null` | no | | [cluster\_monitoring\_interval](#input\_cluster\_monitoring\_interval) | Interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify 0. Valid Values: 0, 1, 5, 10, 15, 30, 60 | `number` | `0` | no | -| [cluster\_performance\_insights\_enabled](#input\_cluster\_performance\_insights\_enabled) | Valid only for Non-Aurora Multi-AZ DB Clusters. Enables Performance Insights for the RDS Cluster | `bool` | `null` | no | -| [cluster\_performance\_insights\_kms\_key\_id](#input\_cluster\_performance\_insights\_kms\_key\_id) | Valid only for Non-Aurora Multi-AZ DB Clusters. Specifies the KMS Key ID to encrypt Performance Insights data. If not specified, the default RDS KMS key will be used (aws/rds) | `string` | `null` | no | -| [cluster\_performance\_insights\_retention\_period](#input\_cluster\_performance\_insights\_retention\_period) | Valid only for Non-Aurora Multi-AZ DB Clusters. Specifies the amount of time to retain performance insights data for. Defaults to 7 days if Performance Insights are enabled. Valid values are 7, month * 31 (where month is a number of months from 1-23), and 731 | `number` | `null` | no | +| [cluster\_performance\_insights\_enabled](#input\_cluster\_performance\_insights\_enabled) | Enables Performance Insights for the RDS Cluster | `bool` | `null` | no | +| [cluster\_performance\_insights\_kms\_key\_id](#input\_cluster\_performance\_insights\_kms\_key\_id) | Specifies the KMS Key ID to encrypt Performance Insights data. If not specified, the default RDS KMS key will be used (aws/rds) | `string` | `null` | no | +| [cluster\_performance\_insights\_retention\_period](#input\_cluster\_performance\_insights\_retention\_period) | Specifies the amount of time to retain performance insights data for. Defaults to 7 days if Performance Insights are enabled. Valid values are 7, month * 31 (where month is a number of months from 1-23), and 731 | `number` | `null` | no | | [cluster\_scalability\_type](#input\_cluster\_scalability\_type) | Specifies the scalability mode of the Aurora DB cluster. When set to limitless, the cluster operates as an Aurora Limitless Database. When set to standard (the default), the cluster uses normal DB instance creation. Valid values: limitless, standard | `string` | `null` | no | | [cluster\_tags](#input\_cluster\_tags) | A map of tags to add to only the cluster. Used for AWS Instance Scheduler tagging | `map(string)` | `{}` | no | | [cluster\_timeouts](#input\_cluster\_timeouts) | Create, update, and delete timeout configurations for the cluster | `map(string)` | `{}` | no | diff --git a/variables.tf b/variables.tf index c1f35581..7a1dadca 100644 --- a/variables.tf +++ b/variables.tf @@ -109,19 +109,19 @@ variable "cluster_scalability_type" { } variable "cluster_performance_insights_enabled" { - description = "Valid only for Non-Aurora Multi-AZ DB Clusters. Enables Performance Insights for the RDS Cluster" + description = "Enables Performance Insights for the RDS Cluster" type = bool default = null } variable "cluster_performance_insights_kms_key_id" { - description = "Valid only for Non-Aurora Multi-AZ DB Clusters. Specifies the KMS Key ID to encrypt Performance Insights data. If not specified, the default RDS KMS key will be used (aws/rds)" + description = "Specifies the KMS Key ID to encrypt Performance Insights data. If not specified, the default RDS KMS key will be used (aws/rds)" type = string default = null } variable "cluster_performance_insights_retention_period" { - description = "Valid only for Non-Aurora Multi-AZ DB Clusters. Specifies the amount of time to retain performance insights data for. Defaults to 7 days if Performance Insights are enabled. Valid values are 7, month * 31 (where month is a number of months from 1-23), and 731" + description = "Specifies the amount of time to retain performance insights data for. Defaults to 7 days if Performance Insights are enabled. Valid values are 7, month * 31 (where month is a number of months from 1-23), and 731" type = number default = null } From 6468f81cf317a95a4810f1d796a7ca4abeb276f2 Mon Sep 17 00:00:00 2001 From: Jon Henry Date: Wed, 4 Jun 2025 14:25:45 -0600 Subject: [PATCH 2/3] feat: Add `create_before_destroy` to Aurora DB instance resource (#506) Add create_before_destroy to Aurora instance Co-authored-by: Jon Henry --- main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.tf b/main.tf index 6a438f73..4f569708 100644 --- a/main.tf +++ b/main.tf @@ -201,6 +201,11 @@ resource "aws_rds_cluster_instance" "this" { update = try(var.instance_timeouts.update, null) delete = try(var.instance_timeouts.delete, null) } + + lifecycle { + create_before_destroy = true + } + } ################################################################################ From 273752a784e9f98d63c5bfe32a2a37013b50b768 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 4 Jun 2025 20:26:14 +0000 Subject: [PATCH 3/3] chore(release): version 9.14.0 [skip ci] ## [9.14.0](https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/compare/v9.13.0...v9.14.0) (2025-06-04) ### Features * Add `create_before_destroy` to Aurora DB instance resource ([#506](https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/issues/506)) ([6468f81](https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/commit/6468f81cf317a95a4810f1d796a7ca4abeb276f2)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82f6b3dc..07056d26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [9.14.0](https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/compare/v9.13.0...v9.14.0) (2025-06-04) + + +### Features + +* Add `create_before_destroy` to Aurora DB instance resource ([#506](https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/issues/506)) ([6468f81](https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/commit/6468f81cf317a95a4810f1d796a7ca4abeb276f2)) + ## [9.13.0](https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/compare/v9.12.0...v9.13.0) (2025-03-04)