Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rds-postgres/replica/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Provision a Postgres database configured as a replica using AWS RDS.
| <a name="input_parameter_group_name"></a> [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the RDS parameter group; defaults to identifier | `string` | `""` | no |
| <a name="input_performance_insights_enabled"></a> [performance\_insights\_enabled](#input\_performance\_insights\_enabled) | Set to false to disable performance insights | `bool` | `true` | no |
| <a name="input_publicly_accessible"></a> [publicly\_accessible](#input\_publicly\_accessible) | Set to true to access this database outside the VPC | `bool` | `false` | no |
| <a name="input_replica_region"></a> [replica\_region](#input\_replica\_region) | Region where the replica will be managed; defaults to the provider region when null | `string` | `null` | no |
| <a name="input_replicate_source_db"></a> [replicate\_source\_db](#input\_replicate\_source\_db) | Identifier of the primary database instance to replicate | `string` | n/a | yes |
| <a name="input_storage_encrypted"></a> [storage\_encrypted](#input\_storage\_encrypted) | Set to false to disable on-disk encryption | `bool` | `true` | no |
| <a name="input_subnet_group_name"></a> [subnet\_group\_name](#input\_subnet\_group\_name) | Name of the RDS subnet group (only for cross-region replication) | `string` | `null` | no |
Expand Down
1 change: 1 addition & 0 deletions rds-postgres/replica/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ resource "aws_db_instance" "this" {
parameter_group_name = local.parameter_group_name
performance_insights_enabled = var.performance_insights_enabled
publicly_accessible = var.publicly_accessible
region = var.replica_region
replicate_source_db = var.replicate_source_db
skip_final_snapshot = true
storage_encrypted = var.storage_encrypted
Expand Down
6 changes: 6 additions & 0 deletions rds-postgres/replica/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ variable "replicate_source_db" {
type = string
}

variable "replica_region" {
description = "Region where the replica will be managed; defaults to the provider region when null"
type = string
default = null
}

variable "storage_encrypted" {
type = bool
default = true
Expand Down