rds-aurora

franviera92/rds-aurora/aws

Terraform Module HCL AWS ⏱ stale 4y 3mo

Terraform module which creates RDS Aurora resources on AWS

Install

module "rds-aurora" {
source = "franviera92/rds-aurora/aws"
version = "2.15.1"
}
⭐ Source on GitHub 📦 Registry page

README

AWS RDS Aurora Terraform module Terraform module which creates RDS Aurora resources on AWS. These types of resources are supported: RDS Cluster RDS Cluster Instance DB Subnet Group Application AutoScaling Policy * Application AutoScaling Target Terraform versions Terraform 0.12. Pin module version to ~> v2.0. Submit pull-requests to master branch. Terraform 0.11. Pin module version to ~> v1.0. Submit pull-requests to terraform011 branch. Available features - Autoscaling of read-replicas (based on CPU utilization) - Enhanced Monitoring Usage ``hcl module "db" { source = "terraform-aws-modules/rds-aurora/aws" version = "~> 2.0" name = "test-aurora-db-postgres96" engine = "aurora-postgresql" engine_version = "9.6.9" vpc_id = "vpc-12345678" subnets = ["subnet-12345678", "subnet-87654321"] repl

Inputs (50)

NameTypeDescriptionDefault
instance_typestringInstance type to use required
namestringName given resources required
vpc_idstringVPC ID required
db_parameter_group_namestringThe name of a DB parameter group to use required
db_cluster_parameter_group_namestringThe name of a DB Cluster parameter group to use required
iam_roleslist(string)A List of ARNs for the IAM roles to associate to the RDS Cluster.[]
allowed_cidr_blockslist(string)A list of CIDR blocks which are allowed to access the database[]
passwordstringMaster DB password""
backup_retention_periodnumberHow long to keep backups for (in days)7
ca_cert_identifierstringThe identifier of the CA certificate for the DB instance"rds-ca-2019"
portstringThe port on which to accept connections""
replica_scale_connectionsnumberAverage number of connections to trigger autoscaling at. Default value is 70% of700
backtrack_windownumberThe target backtrack window, in seconds. Only available for aurora engine curren0
replica_scale_enabledboolWhether to enable autoscaling for RDS Aurora (MySQL) read replicasfalse
tagsmap(string)A map of tags to add to all resources.{}
predefined_metric_typestringThe metric type to scale on. Valid values are RDSReaderAverageCPUUtilization and"RDSReaderAverageCPUUtilization"
preferred_backup_windowstringWhen to perform DB backups"02:00-03:00"
storage_encryptedboolSpecifies whether the underlying storage layer should be encryptedtrue
vpc_security_group_idslist(string)List of VPC security groups to associate to the cluster in addition to the SG we[]
performance_insights_enabledboolSpecifies whether Performance Insights is enabled or not.false
create_security_groupboolWhether to create security group for RDS clustertrue
monitoring_intervalnumberThe interval (seconds) between points when Enhanced Monitoring metrics are colle0
engine_versionstringAurora database engine version."5.6.10a"
iam_database_authentication_enabledboolSpecifies whether IAM Database authentication should be enabled or not. Not all false
enabled_cloudwatch_logs_exportslist(string)List of log types to export to cloudwatch[]
… and 10 more inputs

Outputs (11)

this_rds_cluster_id — The ID of the cluster
this_rds_cluster_master_password — The master password
this_security_group_id — The security group ID of the cluster
this_rds_cluster_port — The port
this_rds_cluster_master_username — The master username
this_rds_cluster_instance_endpoints — A list of all cluster instance endpoints
this_rds_cluster_arn — The ID of the cluster
this_rds_cluster_resource_id — The Resource ID of the cluster
this_rds_cluster_endpoint — The cluster endpoint
this_rds_cluster_reader_endpoint — The cluster reader endpoint
this_rds_cluster_database_name — Name for an automatically created database on cluster creation

Resources (11)

aws_appautoscaling_policyaws_appautoscaling_targetaws_db_subnet_groupaws_iam_roleaws_iam_role_policy_attachmentaws_rds_clusteraws_rds_cluster_instanceaws_security_groupaws_security_group_rulerandom_idrandom_password

Details

FrameworkTerraform Module
LanguageHCL
Version2.15.1
Cloud AWS
★ Stars0
Forks0
Total downloads10.2k
Inputs50
Outputs11
Resources11
Examples4
LicenseMIT
Namespacefranviera92
Updated