aurora-serverless

104corp/aurora-serverless/aws

Terraform Module HCL AWS

Terraform module which creates Aurora Serverless resources on AWS

Install
module "aurora-serverless" {
source = "104corp/aurora-serverless/aws"
version = "0.0.6"
}
plain text: /constructs/tfmod-104corp-aurora-serverless-aws/install.txt
⭐ Source on GitHub 📦 Registry page
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)
NameTypeDescriptionDefault
namestringName given to DB subnet group required
subnetslistList of subnet IDs to use required
envnamestringEnvironment name (eg,test, stage or prod) required
azslistList of AZs to use required
passwordstringMaster DB password required
security_groupslistVPC Security Group IDs required
envtypestringEnvironment type (eg,prod or nonprod) required
identifier_prefixstringPrefix for cluster identifier""
preferred_backup_windowstringWhen to perform DB backups"02:00-03:00"
cw_eval_period_connectionsstringEvaluation period for the DB connections alarms"1"
iam_database_authentication_enabledstringWhether to enable IAM database authentication for the RDS Clusterfalse
min_capacitystringThe min capacity for database"2"
performance_insights_enabledstringWhether to enable Performance Insightsfalse
monitoring_intervalstringThe interval (seconds) between points when Enhanced Monitoring metrics are colle0
cw_max_cpustringCPU threshold above which to alarm"85"
database_namestringMaster DB name""
usernamestringMaster DB username"root"
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"
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"
max_capacitystringThe max capacity for database"8"
portstringThe port on which to accept connections"3306"
db_parameter_group_namestringThe name of a DB parameter group to use"default.aurora5.6"
snapshot_identifierstringDB snapshot to create this database from""
cw_max_replica_lagstringMaximum Aurora replica lag in milliseconds above which to alarm"2000"
cw_eval_period_cpustringEvaluation period for the DB CPU alarms"2"
Outputs (3)
cluster_identifier
cluster_endpoint
reader_endpoint
Resources (6)
aws_cloudwatch_metric_alarmaws_db_subnet_groupaws_iam_roleaws_iam_role_policy_attachmentaws_rds_clusterrandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.6
Cloud AWS
★ Stars13
Forks9
Total downloads6.8k
Inputs39
Outputs3
Resources6
LicenseApache-2.0
Namespace104corp
Updated