kazhala / terraform-aws-rds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-rds

Requirements

Name Version
terraform >= 1.0.0
aws >= 3.60
random >= 3.1.0

Providers

Name Version
aws 3.63.0
random 3.1.0

Modules

No modules.

Resources

Name Type
aws_db_instance.this resource
aws_db_subnet_group.this resource
aws_iam_role.enhanced_monitoring resource
aws_iam_role_policy_attachment.enhanced_monitoring resource
aws_security_group.rds resource
aws_security_group_rule.rds_egress resource
random_id.rds_final_snapshot resource
random_password.rds_master resource
aws_iam_policy_document.enhanced_monitoring data source

Inputs

Name Description Type Default Required
deploy_db_instance Deploy DB instance. bool true no
enable_enhanced_monitoring Enable enhanced monitoring on the DB instance. bool true no
enable_performance_insights Enable performance insights. bool true no
enabled_cloudwatch_logs_exports DB instance cloudwatch exports. list(string)
[
"postgresql",
"upgrade"
]
no
monitoring_interval Interval to monitor when enhanced monitoring is turned on. number 60 no
multi_az Enable multi az. bool false no
name Name of the DB instance. string n/a yes
rds_allocated_storage Default DB instance storage size. number 20 no
rds_backup_retention_period Automated snapshot retention period. number 7 no
rds_backup_window The daily time range (UTC) during which automated backups are created if they are enabled. string "04:00-04:30" no
rds_db_name Name of the default database name. string "postgres" no
rds_engine DB engine to use. string "postgres" no
rds_engine_version Version to use for the DB instance engine. string "12.7" no
rds_instance_class Instance class to use for the DB instance. string "db.t2.micro" no
rds_maintenance_window The window to perform maintenance in. string "Sun:05:00-Sun:05:30" no
rds_max_allocated_storage Max scaling for DB instance storage size. number 50 no
rds_password Password for the default admin user. Optional, random password will be created if not present. string null no
rds_port Port to use for the DB instance. number 5432 no
rds_snapshot_identifier Create DB instances using the provided snapshot ID. string null no
rds_username User name for the default admin user. string "postgres" no
storage_encrypted Encrypt storage bool false no
subnet_group Subnet group for the DB instance. If not provided, a default subnet group will be created. string null no
subnet_ids Subnets for the DB instance. Optional if subnet_group is present, otherwise required. list(string) null no
tags Tags to apply to applicable resources. map(string) {} no
vpc_id The VPC to create the security group. Optional if vpc_security_group_ids is present. string null no
vpc_security_group_ids List of security groups to attach to the DB instance. If not provided, a default SG will be created. list(any) null no

Outputs

Name Description
aws_db_instance Outputs of the DB instance created.
aws_db_subnet_group Outputs of the DB subnet group created.
aws_iam_role Outputs of the IAM role created.
aws_security_group Outputs of the security group created.

About

License:MIT License


Languages

Language:HCL 100.0%