rds-aurora
aws-ia/rds-aurora/aws
AWS RDS Aurora Module
> Note: This module is in alpha state and is likely to contain bugs and updates may introduce breaking changes. It is not recommended for production use at this time. Terraform Amazon Aurora Terraform module for automating deployment of Amazon Aurora and related resources following AWS best practices. Supported Features - Aurora Provisioned cluster (MySQL & PostgreSQL) - Aurora Global databases (MySQL & PostgreSQL) Deployment Procedure To deploy the Terraform Amazon Aurora module, do the following: 1. Install Terraform. For instructions and a video tutorial, see Install Terraform. 2. Sign up and log into Terraform Cloud (There is a free tier available). 1. Create a Terraform organization. 3. Configure Terraform Cloud API access. Run the following to generate a Terraform Cloud token from th
| Name | Type | Description | Default |
|---|---|---|---|
| sec_region | string | The name of the secondary AWS region you wish to deploy into | required |
| region | string | The name of the primary AWS region you wish to deploy into | required |
| private_subnet_ids_p | list(string) | A list of private subnet IDs in your Primary AWS region VPC | required |
| password | string | Master DB password | required |
| private_subnet_ids_s | list(string) | A list of private subnet IDs in your Secondary AWS region VPC | required |
| instance_class | string | Instance type to use at replica instance | "db.r5.large" |
| database_name | string | Name for an automatically created database on cluster creation | "mydb" |
| auto_minor_version_upgrade | bool | Determines whether minor engine upgrades will be performed automatically in the | true |
| engine | string | Aurora database engine type: aurora (for MySQL 5.6-compatible Aurora), aurora-my | "aurora-postgresql" |
| engine_version_mysql | string | Aurora database engine version. | "5.7.mysql_aurora.2.10.2" |
| secondary_instance_count | number | instance count for secondary Aurora cluster | 1 |
| skip_final_snapshot | bool | skip creating a final snapshot before deleting the DB | true |
| allow_major_version_upgrade | bool | Enable to allow major engine version upgrades when changing engine versions. Def | true |
| enable_slowquery_log | bool | Enable MySQL slowquery log export to Amazon Cloudwatch. | false |
| name | string | Prefix for resource names | "aurora" |
| username | string | Master DB username | "root" |
| storage_encrypted | bool | Specifies whether the underlying Aurora storage layer should be encrypted | false |
| snapshot_identifier | string | id of snapshot to restore. If you do not want to restore a db, leave the default | "" |
| enable_audit_log | bool | Enable MySQL audit log export to Amazon Cloudwatch. | false |
| final_snapshot_identifier_prefix | string | The prefix name to use when creating a final snapshot on cluster destroy, append | "final" |
| preferred_backup_window | string | When to perform DB backups | "02:00-03:00" |
| enable_error_log | bool | Enable MySQL error log export to Amazon Cloudwatch. | false |
| setup_as_secondary | bool | Setup aws_rds_cluster.primary Terraform resource as Secondary Aurora cluster aft | false |
| enable_postgresql_log | bool | Enable PostgreSQL log export to Amazon Cloudwatch. | false |
| identifier | string | Cluster identifier | "aurora" |
aurora_cluster_id — The ID of the Primary Aurora clusteraurora_cluster_resource_id — The Cluster Resource ID of the Primary Aurora clusteraurora_cluster_reader_endpoint — Primary Aurora cluster reader endpointaurora_cluster_port — Primary Aurora cluster endpoint portaurora_cluster_database_name — Name for an automatically created database on Aurora cluster creationaurora_cluster_hosted_zone_id — Route53 hosted zone id of the Primary Aurora clusteraurora_cluster_arn — The ARN of the Primary Aurora clusteraurora_cluster_endpoint — Primary Aurora cluster endpointaurora_cluster_master_username — Aurora master usernameaurora_cluster_master_password — Aurora master User passwordaurora_cluster_instance_endpoints — A list of all Primary Aurora cluster instance endpointsaurora_cluster_instance_ids — A list of all Primary Aurora cluster instance ids