Skip to content

Commit 65469a9

Browse files
authored
Support encrypted RDS instance (#28)
1 parent a238b8b commit 65469a9

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

terraform/veda-wfs3/rds.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ resource "aws_db_instance" "db" {
5858
backup_retention_period = 7
5959
username = "postgres"
6060
password = var.db_password
61+
storage_encrypted = var.db_encrypted
6162
allow_major_version_upgrade = true
6263
parameter_group_name = aws_db_parameter_group.default.name
6364
}

terraform/veda-wfs3/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ variable "db_password" {
3737
sensitive = true
3838
}
3939

40+
variable "db_encrypted" {
41+
description = "Whether RDS storage should be encrypted"
42+
type = bool
43+
default = false
44+
}
45+
4046
variable "dns_zone_name" {
4147
}
4248

0 commit comments

Comments
 (0)