Difference between revisions of "Terraform resource: aws rds cluster"

From wikieduonline
Jump to navigation Jump to search
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster
 +
== Arguments ==
 +
* <code>aws_rds_cluster</code>
 +
* <code>[[min_capacity]]</code>: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#min_capacity
 +
* <code>[[max_capacity]]</code>: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#max_capacity
 +
 +
* <code>engine</code>: <code>aurora, aurora-mysql, aurora-postgresql</code>
 +
* <code>engine_mode</code>: <code>global, multimaster, parallelquery, [[provisioned]], serverless</code>. Defaults to: provisioned https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#engine_mode
 +
* <code>[[cluster_identifier]]</code>: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#cluster_identifier
 +
* <code>[[scaling]]</code> https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#scaling_configuration
 +
* [[backup_retention_period]]
 +
* <code>[[deletion_protection]]</code>
 +
* <code>[[serverlessv2_scaling_configuration]]</code>
 +
* <code>[[storage_encrypted]]</code>
 +
* <code>[[kms_key_id]]</code>
 +
* <code>[[master_password]]</code>
 +
* <code>[[database_name]]</code>
 +
* <code>[[engine_version]]</code>
 +
* <code>[[vpc_security_group_ids]]</code>
  
* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster
+
== Official example ==
 +
<pre>
 +
resource "aws_rds_cluster" "postgresql" {
 +
  cluster_identifier      = "aurora-cluster-demo"
 +
  engine                  = "aurora-postgresql"
 +
  availability_zones      = ["us-west-2a", "us-west-2b", "us-west-2c"]
 +
  database_name          = "mydb"
 +
  master_username        = "foo"
 +
  master_password        = "must_be_eight_characters"
 +
  backup_retention_period = 5
 +
  preferred_backup_window = "07:00-09:00"
 +
}
 +
</pre>
  
* <code>[[min_capacity]]</code>: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#min_capacity
+
 
* <code>[[max_capacity]]</code>: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#max_capacity
+
  [[lifecycle]] {
 +
    [[ignore_changes]] = [master_username, master_password]
 +
  }
 +
 
 +
== Related terms ==
 +
* <code>[[aws_rds_cluster_instance]]</code>
 +
* [[Terraform RDS module]]
 +
* <code>[[module.db.aws_rds_cluster.this]]</code>
  
 
== See also ==
 
== See also ==
* {{Terraform}}
+
* {{aws_rds_cluster}}
 +
* {{Terraform RDS}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 12:24, 1 August 2024

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster

Arguments[edit]

Official example[edit]

resource "aws_rds_cluster" "postgresql" {
  cluster_identifier      = "aurora-cluster-demo"
  engine                  = "aurora-postgresql"
  availability_zones      = ["us-west-2a", "us-west-2b", "us-west-2c"]
  database_name           = "mydb"
  master_username         = "foo"
  master_password         = "must_be_eight_characters"
  backup_retention_period = 5
  preferred_backup_window = "07:00-09:00"
}


 lifecycle {
   ignore_changes = [master_username, master_password]
 }

Related terms[edit]

See also[edit]

Advertising: