Skip to content

Latest commit

 

History

History
64 lines (51 loc) · 4.59 KB

File metadata and controls

64 lines (51 loc) · 4.59 KB

RDS Postgres Replica

Provision a Postgres database configured as a replica using AWS RDS.

Requirements

Name Version
terraform >= 1.6.2
aws ~> 5.0

Providers

Name Version
aws ~> 5.0

Modules

Name Source Version
alarms ../cloudwatch-alarms n/a
parameter_group ../parameter-group n/a

Resources

Name Type
aws_db_instance.this resource

Inputs

Name Description Type Default Required
alarm_actions SNS topic ARNs or other actions to invoke for alarms list(string) [] no
allocated_storage Size in GB for the database instance number n/a yes
apply_immediately Set to true to immediately apply changes and cause downtime bool false no
ca_cert_id Certificate authority for RDS database string "rds-ca-rsa2048-g1" no
create_cloudwatch_alarms Set to false to disable creation of CloudWatch alarms bool true no
create_parameter_group Set to false to use existing parameter group bool true no
engine_version Version for RDS database engine string n/a yes
force_ssl Set to false to allow unencrypted connections to the database bool true no
identifier Unique identifier for this database string n/a yes
instance_class Tier for the database instance string n/a yes
kms_key_id KMS key to encrypt data at rest string null no
max_allocated_storage Maximum size GB after autoscaling number 0 no
parameter_group_name Name of the RDS parameter group; defaults to identifier string "" no
performance_insights_enabled Set to false to disable performance insights bool true no
publicly_accessible Set to true to access this database outside the VPC bool false no
replicate_source_db Identifier of the primary database instance to replicate string n/a yes
storage_encrypted Set to false to disable on-disk encryption bool true no
subnet_group_name Name of the RDS subnet group (only for cross-region replication) string null no
tags Tags to be applied to created resources map(string) {} no
vpc_security_group_ids IDs of VPC security groups for this instance (if different from primary) list(string) [] no

Outputs

Name Description
host The hostname to use when connecting to this replica
identifier Identifier of the created RDS database
instance The created replica