All Modules
AWSDatabase

RDS

PostgreSQL on Graviton with managed secrets, encryption, and Performance Insights

Usage

module "rds" {
  source = "github.com/fencepencil/fencepencil-aws-modules//rds"

  name = "<name>"
  vpc_id = "<vpc_id>"
  subnet_ids = ["<value>"]

  tags = var.tags
}

Inputs (9)

NameTypeDescriptionDefaultRequired
namestringName/identifier for the databaseyes
vpc_idstringVPC ID for the security groupyes
subnet_idslist(string)Subnet IDs for the DB subnet groupyes
engine_versionstringPostgreSQL engine version17no
instance_classstringInstance class for the databasedb.r7g.largeno
use_clusterboolUse Aurora cluster instead of single instancefalseno
kms_key_arnstringKMS key ARN for encryptionnullno
deletion_protectionboolEnable deletion protectiontrueno
tagsmap(string)Tags to apply to all resources{}no

Outputs (6)

NameDescription
endpointConnection endpoint
addressHostname of the database
portPort of the database
database_nameName of the default database
security_group_idSecurity group ID
master_user_secret_arnARN of the master password secret

More AWS Modules

Browse our full library of AWS infrastructure modules.

View all AWS modules