Skip to content

Commit

Permalink
Merge pull request #35679 from ArcoKim/d-aws_rds_cluster-fix
Browse files Browse the repository at this point in the history
[Docs] Added help migrating from RDS Serverless v1 to Serverless v2
  • Loading branch information
justinretzolk authored Feb 8, 2024
2 parents 18a2035 + ed517db commit 3701861
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/docs/r/rds_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ resource "aws_rds_cluster" "example" {

-> More information about RDS Serverless v2 Clusters can be found in the [RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html).

~> **Note:** Unlike Serverless v1, in Serverless v2 the `storage_encrypted` value is set to `false` by default.
This is because Serverless v1 uses the `serverless` `engine_mode`, but Serverless v2 uses the `provisioned` `engine_mode`.

To create a Serverless v2 RDS cluster, you must additionally specify the `engine_mode` and `serverlessv2_scaling_configuration` attributes. An `aws_rds_cluster_instance` resource must also be added to the cluster with the `instance_class` attribute specified.

```terraform
Expand All @@ -115,6 +118,7 @@ resource "aws_rds_cluster" "example" {
database_name = "test"
master_username = "test"
master_password = "must_be_eight_characters"
storage_encrypted = true
serverlessv2_scaling_configuration {
max_capacity = 1.0
Expand Down

0 comments on commit 3701861

Please sign in to comment.