postgresql-rds

azavea/postgresql-rds/aws

Terraform Module HCL AWS

A Terraform module to create an Amazon Web Services (AWS) PostgreSQL Relational Database Server (RDS).

Install
module "postgresql-rds" {
source = "azavea/postgresql-rds/aws"
version = "3.0.0"
}
plain text: /constructs/tfmod-azavea-postgresql-rds-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-postgresql-rds ![CircleCI](https://circleci.com/gh/azavea/terraform-aws-postgresql-rds) A Terraform module to create an Amazon Web Services (AWS) PostgreSQL Relational Database Server (RDS). Usage ``hcl module "postgresql_rds" { source = "github.com/azavea/terraform-aws-postgresql-rds" vpc_id = "vpc-20f74844" allocated_storage = "32" engine_version = "9.4.4" instance_type = "db.t2.micro" storage_type = "gp2" database_identifier = "jl23kj32sdf" database_name = "hector" database_username = "hector" database_password = "secret" database_port = "5432" backup_retention_period = "30" backup_window = "04:00-04:30" maintenance_window = "sun:04:30-sun:05:30" auto_minor_version_upgrade = false multi_availability_zone = true storage_encrypted = false subnet_group = aws_db_subnet_group.d

Inputs (37)
NameTypeDescriptionDefault
subnet_groupstringDatabase subnet group required
database_namestringName of database inside storage engine required
alarm_actionslistList of ARNs to be notified via CloudWatch when alarm enters ALARM state required
database_usernamestringName of user inside storage engine required
database_passwordstringDatabase password inside storage engine required
vpc_idstringID of VPC meant to house database required
insufficient_data_actionslistList of ARNs to be notified via CloudWatch when alarm enters INSUFFICIENT_DATA s required
ok_actionslistList of ARNs to be notified via CloudWatch when alarm enters OK state required
database_identifierstringIdentifier for RDS instance required
database_portnumberPort on which database will accept connections5432
maintenance_windowstring60 minute time window to reserve for maintenance"sun:04:30-sun:05:30"
final_snapshot_identifierstringIdentifier for final snapshot if skip_final_snapshot is set to false"terraform-aws-postgresql-rds-snapshot"
snapshot_identifierstringThe name of the snapshot (if any) the database should be created from""
backup_windowstring30 minute time window to reserve for backups"04:00-04:30"
multi_availability_zoneboolFlag to enable hot standby in another availability zonefalse
alarm_disk_queue_thresholdnumberDisk queue alarm threshold10
storage_encryptedboolFlag to enable storage encryptionfalse
monitoring_intervalnumberThe interval, in seconds, between points when Enhanced Monitoring metrics are co0
tagsmap(string)Extra tags to attach to the RDS resources{}
projectstringName of project this VPC is meant to house"Unknown"
allocated_storagenumberStorage allocated to database instance32
engine_versionstringDatabase engine version"11.5"
environmentstringName of environment this VPC is targeting"Unknown"
alarm_free_disk_thresholdnumberFree disk alarm threshold in bytes5000000000
alarm_free_memory_thresholdnumberFree memory alarm threshold in bytes128000000
copy_tags_to_snapshotboolFlag to enable or disable copying instance tags to the final snapshotfalse
deletion_protectionboolFlag to protect the database instance from deletionfalse
auto_minor_version_upgradeboolMinor engine upgrades are applied automatically to the DB instance during the matrue
skip_final_snapshotboolFlag to enable or disable a snapshot if the database instance is terminatedtrue
Outputs (6)
database_security_group_id — Security group ID of the database
endpoint — Public DNS name and port separated by a colon
id — The database instance ID
hosted_zone_id — The zone ID for the autogenerated DNS name given in endpoint
hostname — Public DNS name of database instance
port — Port of database instance
Resources (5)
aws_cloudwatch_metric_alarmaws_db_instanceaws_iam_roleaws_iam_role_policy_attachmentaws_security_group
Details
FrameworkTerraform Module
LanguageHCL
Version3.0.0
Cloud AWS
★ Stars87
Forks66
Total downloads7.1k
Inputs37
Outputs6
Resources5
LicenseApache-2.0
Namespaceazavea
Updated