Difference between revisions of "Terraform resource: aws rds cluster"
Jump to navigation
Jump to search
(31 intermediate revisions by 2 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>aws_rds_cluster</code> |
* <code>[[min_capacity]]</code>: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#min_capacity | * <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>[[max_capacity]]</code>: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#max_capacity | ||
− | * <code>engine</code>: aurora, aurora-mysql, aurora-postgresql | + | * <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> | ||
− | == | + | == 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> | ||
+ | |||
+ | |||
+ | [[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 == | ||
+ | * {{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]
aws_rds_cluster
min_capacity
: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#min_capacitymax_capacity
: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#max_capacity
engine
:aurora, aurora-mysql, aurora-postgresql
engine_mode
:global, multimaster, parallelquery, provisioned, serverless
. Defaults to: provisioned https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#engine_modecluster_identifier
: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#cluster_identifierscaling
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#scaling_configuration- backup_retention_period
deletion_protection
serverlessv2_scaling_configuration
storage_encrypted
kms_key_id
master_password
database_name
engine_version
vpc_security_group_ids
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: