aurora

claranet/aurora/aws

Terraform Module HCL AWS

Terraform module for creating and managing Amazon Aurora clusters

Install
module "aurora" {
source = "claranet/aurora/aws"
version = "4.1.0"
}
plain text: /constructs/tfmod-claranet-aurora-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

tf-aws-aurora AWS Aurora DB Cluster & Instance(s) Terraform Module. Gives you: - A DB subnet group - An Aurora DB cluster - An Aurora DB instance + 'n' number of additional instances - 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) - Optionally configure autoscaling for read replicas (MySQL clusters only) - Optionally exporting DB logs to CloudWatch Logs Terraform version compatibility | Module version | Terraform version | |----------------|-------------------| | 4.x.x | 0.12.x | | 3.x.x | 0.11.x | Known issues AWS doesn't automatically remove RDS instances created from autoscaling when you remove the autoscaling rules and t

Inputs (46)
NameTypeDescriptionDefault
subnetslist(string)List of subnet IDs to use required
envtypestringEnvironment type (eg,prod or nonprod) required
azslist(string)List of AZs to use required
security_groupslist(string)VPC Security Group IDs required
namestringName given to DB subnet group required
envnamestringEnvironment name (eg,test, stage or prod) required
passwordstringMaster DB password required
instance_typestringInstance type to use"db.t2.small"
skip_final_snapshotstringShould a final snapshot be created on cluster destroy"false"
db_cluster_parameter_group_namestringThe name of a DB Cluster parameter group to use"default.aurora5.6"
cw_sns_topicstringAn SNS topic to publish CloudWatch alarms to"false"
enginestringAurora database engine type, currently aurora, aurora-mysql or aurora-postgresql"aurora"
identifier_prefixstringPrefix for cluster and instance identifier""
replica_countstringNumber of reader nodes to create. If `replica_scale_enable` is `true`, the valu"0"
engine-versionstringAurora database engine version."5.6.10a"
replica_scale_enabledstringWhether to enable autoscaling for RDS Aurora (MySQL) read replicasfalse
db_parameter_group_namestringThe name of a DB parameter group to use"default.aurora5.6"
cw_max_cpustringCPU threshold above which to alarm"85"
iam_database_authentication_enabledstringWhether to enable IAM database authentication for the RDS Clusterfalse
enabled_cloudwatch_logs_exportslist(string)List of log types to export to CloudWatch Logs. If omitted, no logs will be expo[]
final_snapshot_identifierstringThe name to use when creating a final snapshot on cluster destroy, appends a ran"final"
backup_retention_periodstringHow long to keep backups for (in days)"7"
auto_minor_version_upgradestringDetermines whether minor engine upgrades will be performed automatically in the "true"
cw_alarmsstringWhether to enable CloudWatch alarms - requires `cw_sns_topic` is specifiedfalse
replica_scale_cpustringCPU usage to trigger autoscaling at"70"
publicly_accessiblestringWhether the DB should have a public IP address"false"
monitoring_intervalstringThe interval (seconds) between points when Enhanced Monitoring metrics are colle0
… and 6 more inputs
Outputs (4)
cluster_endpoint
all_instance_endpoints_list
reader_endpoint
cluster_identifier
Resources (9)
aws_appautoscaling_policyaws_appautoscaling_targetaws_cloudwatch_metric_alarmaws_db_subnet_groupaws_iam_roleaws_iam_role_policy_attachmentaws_rds_clusteraws_rds_cluster_instancerandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version4.1.0
Cloud AWS
★ Stars55
Forks49
Total downloads50.5k
Inputs46
Outputs4
Resources9
LicenseMIT
Namespaceclaranet
Updated