No requirements.
Name | Version |
---|---|
aws | n/a |
Name | Source | Version |
---|---|---|
rds_postgres_db | terraform-aws-modules/rds/aws | 4.2.0 |
Name | Type |
---|---|
aws_kms_key.rds_postgres_key | resource |
aws_security_group.rds_postgres_sg | resource |
aws_caller_identity.current | data source |
aws_iam_policy_document.cloudwatch_log_group_kms_access | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
allocated_storage | The allocated storage in gigabytes | number |
5 |
no |
allow_major_version_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | bool |
false |
no |
apply_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | bool |
false |
no |
auto_minor_version_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | bool |
true |
no |
backup_retention_period | The days to retain backups for | number |
7 |
no |
backup_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance_window | string |
"04:00-07:00" |
no |
cloudwatch_log_group_retention_in_days | The number of days to retain CloudWatch logs for the DB instance | number |
7 |
no |
create_random_password | Whether to create random password for RDS primary cluster | bool |
true |
no |
db_name | The DB name to create. If omitted, no database is created initially | string |
null |
no |
delete_automated_backups | Specifies whether to remove automated backups immediately after the DB instance is deleted | bool |
true |
no |
deletion_protection | The database can't be deleted when this value is set to true | bool |
false |
no |
engine_version | The engine version to use | string |
"14.1" |
no |
family | The family of the DB parameter group | string |
"postgres14" |
no |
identifier | The name of the RDS instance | string |
n/a | yes |
instance_class | The instance type of the RDS instance | string |
n/a | yes |
iops | The amount of provisioned IOPS. Setting this implies a storage_type of 'io1' | number |
0 |
no |
maintenance_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | string |
"Mon:01:00-Mon:04:00" |
no |
major_engine_version | Specifies the major version of the engine that this option group should be associated with | string |
"14" |
no |
max_allocated_storage | Specifies the value for Storage Autoscaling | number |
100 |
no |
monitoring_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60 | number |
30 |
no |
multi_az | Specifies if the RDS instance is multi-AZ | bool |
true |
no |
parameters | A list of DB parameters (map) to apply | list(map(string)) |
[] |
no |
password | Password for the master DB user. This is randomly generated if not specified | string |
null |
no |
port | The port on which the DB accepts connections | number |
5432 |
no |
region | The region to create the RDS instance within | string |
n/a | yes |
sg_ingress_cidr_blocks | A list of internal CIDR blocks to allow access to the RDS Instance | list(string) |
n/a | yes |
skip_final_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted | bool |
false |
no |
snapshot_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05 | string |
null |
no |
storage_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'gp2' if not | string |
"gp2" |
no |
subnet_ids | A list of VPC subnet IDs | list(string) |
n/a | yes |
tags | A mapping of tags to assign to all resources | map(string) |
{} |
no |
username | Username for the master DB user. Do not use the value 'user' as this is a reserved word used by the postgres engine | string |
"pguser" |
no |
vpc_id | The VPC ID that the RDS Instance should exist within | string |
n/a | yes |
Name | Description |
---|---|
db_instance_address | The address of the RDS instance |
db_instance_endpoint | The connection endpoint in db_instance_address:db_instance_port format |
db_instance_name | The database name |
db_instance_password | The database password (not tracked after initial terraform creation) |
db_instance_port | The database port |
db_instance_username | The master username for the database |