Commit 32a28356 authored by Felipe Martin's avatar Felipe Martin

Using `encrypted` to set the db_instance.storage_encrypted

parent 0e1f9c7a
...@@ -39,6 +39,7 @@ module "db_instance" { ...@@ -39,6 +39,7 @@ module "db_instance" {
instance_class = "${var.instance_class}" instance_class = "${var.instance_class}"
allocated_storage = "${var.allocated_storage}" allocated_storage = "${var.allocated_storage}"
storage_type = "${var.storage_type}" storage_type = "${var.storage_type}"
storage_encrypted = "${var.storage_encrypted}"
name = "${var.name}" name = "${var.name}"
username = "${var.username}" username = "${var.username}"
......
...@@ -9,6 +9,7 @@ resource "aws_db_instance" "this" { ...@@ -9,6 +9,7 @@ resource "aws_db_instance" "this" {
instance_class = "${var.instance_class}" instance_class = "${var.instance_class}"
allocated_storage = "${var.allocated_storage}" allocated_storage = "${var.allocated_storage}"
storage_type = "${var.storage_type}" storage_type = "${var.storage_type}"
storage_encrypted = "${var.storage_encrypted}"
name = "${var.name}" name = "${var.name}"
username = "${var.username}" username = "${var.username}"
......
...@@ -11,6 +11,11 @@ variable "storage_type" { ...@@ -11,6 +11,11 @@ variable "storage_type" {
default = "gp2" default = "gp2"
} }
variable "storage_encrypted" {
description = "Specifies whether the DB instance is encrypted"
default = false
}
variable "engine" { variable "engine" {
description = "The database engine to use" description = "The database engine to use"
} }
......
...@@ -11,6 +11,11 @@ variable "storage_type" { ...@@ -11,6 +11,11 @@ variable "storage_type" {
default = "gp2" default = "gp2"
} }
variable "storage_encrypted" {
description = "Specifies whether the DB instance is encrypted"
default = false
}
variable "engine" { variable "engine" {
description = "The database engine to use" description = "The database engine to use"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment