Skip to content

Commit

Permalink
Support encrypted RDS instance (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology authored Jan 29, 2024
1 parent a238b8b commit 65469a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/veda-wfs3/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ resource "aws_db_instance" "db" {
backup_retention_period = 7
username = "postgres"
password = var.db_password
storage_encrypted = var.db_encrypted
allow_major_version_upgrade = true
parameter_group_name = aws_db_parameter_group.default.name
}
Expand Down
6 changes: 6 additions & 0 deletions terraform/veda-wfs3/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ variable "db_password" {
sensitive = true
}

variable "db_encrypted" {
description = "Whether RDS storage should be encrypted"
type = bool
default = false
}

variable "dns_zone_name" {
}

Expand Down

0 comments on commit 65469a9

Please sign in to comment.