Skip to content

synapsestudios/terraform-aws-rds-aurora-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-rds-aurora-cluster

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_db_subnet_group.this resource
aws_iam_role.this resource
aws_rds_cluster.this resource
aws_rds_cluster_instance.this resource
aws_secretsmanager_secret.connection_string resource
aws_secretsmanager_secret_version.connection_string resource
aws_security_group.this resource
aws_iam_policy_document.rds_monitoring data source
aws_secretsmanager_secret_version.root_password data source
aws_vpc.database_vpc data source

Inputs

Name Description Type Default Required
additional_security_groups Any additional security groups the cluster should be added to list(string) [] no
availability_zones Availability zones for the database list(string) n/a yes
database_name Name of the default database to create string "main" no
database_subnets Subnets for the database list(string) n/a yes
engine_version The engine version to use string 14 no
db_cluster_parameter_group_name parameter group string n/a yes
deletion_protection Enable deletion protection. DO NOT DISABLE IN PRODUCTION, THIS IS ONLY FOR TESTING. bool true no
instance_class Instance class string "db.t4g.medium" no
instance_count How many RDS instances to create number 1 no
name Determines naming convention of assets. Generally follows DNS naming convention. Service name or abbreviation. string n/a yes
tags A mapping of tags to assign to the AWS resources. map(string) {} no
vpc_id The ID of the vpc the database belongs to string n/a yes

Outputs

Name Description
connection_string_arn The ARN of the secret that stores the connection string for the RDS cluster.
The secret stored inside is formatted as: postgresql://:@:/
db_cluster_id The ID of the RDS cluster
root_credentials A map containing the username and password for the root user of the RDS cluster. Caution: This output will display the password in plain text.
root_password_id The ID of the secret that stores the root password for the RDS cluster
security_group_id The ID of the EC2 security group that controls access to the RDS cluster