aurora-serverless
104corp/aurora-serverless/aws
Terraform module which creates Aurora Serverless resources on AWS
Install
README
tf-aws-aurora-serverless AWS Aurora DB Cluster for Serverless Terraform Module. Gives you: - A DB subnet group - An Aurora DB cluster - Optionally RDS 'Enhanced Monitoring' + associated required IAM role/policy (by simply setting the monitoring_interval param to > 0 - Optionally sensible alarms to SNS (high CPU, high connections, slow replication) Contributing Ensure any variables you add have a type and a description. This README is generated with terraform-docs: terraform-docs md . > README.md Usage examples It is recommended you always create a parameter group, even if it exactly matches the defaults. Changing the parameter group in use requires a restart of the DB cluster, modifying parameters within a group may not (depending on the parameter being altered) Aurora 1.x (MySQL 5.6) ``hc
Inputs (39)
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name given to DB subnet group | required |
| subnets | list | List of subnet IDs to use | required |
| envname | string | Environment name (eg,test, stage or prod) | required |
| azs | list | List of AZs to use | required |
| password | string | Master DB password | required |
| security_groups | list | VPC Security Group IDs | required |
| envtype | string | Environment type (eg,prod or nonprod) | required |
| identifier_prefix | string | Prefix for cluster identifier | "" |
| preferred_backup_window | string | When to perform DB backups | "02:00-03:00" |
| cw_eval_period_connections | string | Evaluation period for the DB connections alarms | "1" |
| iam_database_authentication_enabled | string | Whether to enable IAM database authentication for the RDS Cluster | false |
| min_capacity | string | The min capacity for database | "2" |
| performance_insights_enabled | string | Whether to enable Performance Insights | false |
| monitoring_interval | string | The interval (seconds) between points when Enhanced Monitoring metrics are colle | 0 |
| cw_max_cpu | string | CPU threshold above which to alarm | "85" |
| database_name | string | Master DB name | "" |
| username | string | Master DB username | "root" |
| final_snapshot_identifier | string | The name to use when creating a final snapshot on cluster destroy, appends a ran | "final" |
| backup_retention_period | string | How long to keep backups for (in days) | "7" |
| db_cluster_parameter_group_name | string | The name of a DB Cluster parameter group to use | "default.aurora5.6" |
| cw_sns_topic | string | An SNS topic to publish CloudWatch alarms to | "false" |
| max_capacity | string | The max capacity for database | "8" |
| port | string | The port on which to accept connections | "3306" |
| db_parameter_group_name | string | The name of a DB parameter group to use | "default.aurora5.6" |
| snapshot_identifier | string | DB snapshot to create this database from | "" |
| cw_max_replica_lag | string | Maximum Aurora replica lag in milliseconds above which to alarm | "2000" |
| cw_eval_period_cpu | string | Evaluation period for the DB CPU alarms | "2" |
Outputs (3)
cluster_identifiercluster_endpointreader_endpointResources (6)
Topics & Tags
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,