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)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
name | string | Name/identifier for the database | — | yes |
vpc_id | string | VPC ID for the security group | — | yes |
subnet_ids | list(string) | Subnet IDs for the DB subnet group | — | yes |
engine_version | string | PostgreSQL engine version | 17 | no |
instance_class | string | Instance class for the database | db.r7g.large | no |
use_cluster | bool | Use Aurora cluster instead of single instance | false | no |
kms_key_arn | string | KMS key ARN for encryption | null | no |
deletion_protection | bool | Enable deletion protection | true | no |
tags | map(string) | Tags to apply to all resources | {} | no |
Outputs (6)
| Name | Description |
|---|---|
endpoint | Connection endpoint |
address | Hostname of the database |
port | Port of the database |
database_name | Name of the default database |
security_group_id | Security group ID |
master_user_secret_arn | ARN of the master password secret |