Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rhythmictech/terraform-aws-rds-postgres

Repository files navigation

terraform-aws-rds-postgres follow on Twitter

Create a postgres RDS instance

Requirements

Name Version
terraform >= 0.12
random >= 2.2.0

Providers

Name Version
aws n/a
random >= 2.2.0

Inputs

Name Description Type Default Required
allowed_cidr_blocks CIDR blocks allowed to reach the database list(string) [] no
allowed_ipv6_cidr_blocks IPv6 CIDR blocks allowed to reach the database list(string) [] no
allowed_password_chars What characters are allowed in the postgres password string "!#%^\u0026*()-_=+[]{}\u003c\u003e?" no
allowed_security_groups IDs of security groups allowed to reach the database (not Names) list(string) [] no
backup_retention_period How long to keep RDS backups (in days) string 5 no
create_secretmanager_secret True to create a secretmanager secret containing DB password bool true no
create_ssm_secret True to create a SSM Parameter SecretString containing DB password bool false no
engine Which RDS Engine to use string "postgres" no
engine_version Version of database engine to use string "11.5" no
iam_db_auth True to enable IAM DB authentication bool false no
identifier Identifier for DB Instance string n/a yes
instance_class What instance size to use string "db.t3.small" no
multi_az whether to make database multi-az string true no
name common name for resources in this module string "postgres-rds" no
pass_version Increment to force DB password change string 1 no
port Port the database should listen on string "5432" no
skip_final_snapshot If true no final snapshot will be taken on termination string false no
ssm_path Custom path for SSM parameter, only takes effect if create_ssm_secret is true. string "" no
storage How much storage is available to the database string 20 no
storage_type What storage backend to use (gp2 or standard. io1 not supported) string "gp2" no
subnet_ids Subnets used for database list(string) n/a yes
tags common tags for all resources map(string) {} no
username username of master user string "postgres_user" no
vpc_id ID of VPC resources will be created in string n/a yes

Outputs

Name Description
address The hostname of the RDS instance. See also endpoint and port.
instance Map with address, id, and username keys
instance_id The RDS instance ID.
password_secretsmanager_arn The ARN of the SecretManager Secret.
password_secretsmanager_version The unique identifier of the version of the secret.
password_ssm_arn The ARN of the SecretManager Secret.
password_ssm_name The name of the parameter.
password_ssm_version The unique identifier of the version of the secret.
username The master username for the database.

Packages

No packages published

Contributors 5