rds-cluster
cloudposse/rds-cluster/aws
Terraform module to provision an RDS Aurora cluster for MySQL or Postgres
Install
README
Terraform module to provision an RDS Aurora cluster for MySQL or Postgres. Supports Amazon Aurora Serverless. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test. Basic example ```hcl module "rds_cluster_aurora_postgres" { source = "cloudposse/rds-cluster/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" name = "po
Inputs (50)
| Name | Type | Description | Default |
|---|---|---|---|
| subnets | list(string) | List of VPC subnet IDs | required |
| engine | string | The name of the database engine to be used for this DB cluster. Valid values: `a | "aurora" |
| engine_version | string | The version of the database engine to use. See `aws rds describe-db-engine-versi | "" |
| allowed_ipv6_cidr_blocks | list(string) | List of IPv6 CIDR blocks allowed to access the cluster | [] |
| storage_type | string | One of 'standard' (magnetic), 'gp2' (general purpose SSD), 'io1' (provisioned IO | null |
| apply_immediately | bool | Specifies whether any cluster modifications are applied immediately, or during t | true |
| autoscaling_target_metrics | string | The metrics type to use. If this value isn't provided the default is CPU utiliza | "RDSReaderAverageCPUUtilization" |
| descriptor_formats | any | Describe additional descriptors to be output in the `descriptors` output map. Ma | {} |
| snapshot_identifier | string | Specifies whether or not to create this cluster from a snapshot | null |
| backup_window | string | Daily time range during which the backups happen | "07:00-09:00" |
| maintenance_window | string | Weekly time range during which system maintenance can occur, in UTC | "wed:03:00-wed:04:00" |
| scaling_configuration | list(object({ auto_pause | List of nested attributes with scaling properties. Only valid when `engine_mode` | [] |
| allowed_cidr_blocks | list(string) | List of CIDR blocks allowed to access the cluster | [] |
| allocated_storage | number | The allocated storage in GBs | null |
| deletion_protection | bool | If the DB instance should have deletion protection enabled | false |
| stage | string | ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bu | null |
| additional_tag_map | map(string) | Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add | {} |
| cluster_family | string | The family of the DB cluster parameter group | "aurora5.6" |
| storage_encrypted | bool | Specifies whether the DB cluster is encrypted. The default is `false` for `provi | false |
| enhanced_monitoring_role_enabled | bool | A boolean flag to enable/disable the creation of the enhanced monitoring IAM rol | false |
| replication_source_identifier | string | ARN of a source DB cluster or DB instance if this DB cluster is to be created as | "" |
| … and 10 more inputs | |||
Outputs (20)
instance_endpoints — List of DNS addresses for the DB instances in the clustersecurity_group_id — Security Group IDactivity_stream_arn — Activity Stream ARNdatabase_name — Database nameendpoint — The DNS address of the RDS instanceadmin_user_secret — The secret manager attributes for the managed admin user password (`master_user_secret`).security_group_arn — Security Group ARNreader_endpoint — A read-only endpoint for the Aurora cluster, automatically load-balanced across replicasmaster_host — DB Master hostnamereplicas_host — Replicas hostnamedbi_resource_ids — List of the region-unique, immutable identifiers for the DB instances in the clustercluster_resource_id — The region-unique, immutable identifie of the clustercluster_security_groups — Default RDS cluster security groupsactivity_stream_name — Activity Stream Namereserved_instance — All information about the reserved instance(s) if created.master_username — Username for the master DB userarn — Amazon Resource Name (ARN) of the clustersecurity_group_name — Security Group namecluster_identifier — Cluster Identifierport — DB portResources (14)
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,