Commit d07f41dc authored by Felipe Martin's avatar Felipe Martin

Cleaned duplicated attributes & variables

parent 310a0803
...@@ -65,7 +65,5 @@ module "db_instance" { ...@@ -65,7 +65,5 @@ module "db_instance" {
backup_retention_period = "${var.backup_retention_period}" backup_retention_period = "${var.backup_retention_period}"
backup_window = "${var.backup_window}" backup_window = "${var.backup_window}"
storage_encrypted = "${var.encrypted}"
tags = "${var.tags}" tags = "${var.tags}"
} }
...@@ -36,7 +36,5 @@ resource "aws_db_instance" "this" { ...@@ -36,7 +36,5 @@ resource "aws_db_instance" "this" {
backup_retention_period = "${var.backup_retention_period}" backup_retention_period = "${var.backup_retention_period}"
backup_window = "${var.backup_window}" backup_window = "${var.backup_window}"
storage_encrypted = "${var.storage_encrypted}"
tags = "${merge(var.tags, map("Name", format("%s", var.identifier)))}" tags = "${merge(var.tags, map("Name", format("%s", var.identifier)))}"
} }
...@@ -126,8 +126,3 @@ variable "tags" { ...@@ -126,8 +126,3 @@ variable "tags" {
description = "A mapping of tags to assign to all resources" description = "A mapping of tags to assign to all resources"
default = {} default = {}
} }
variable "storage_encrypted" {
description = "Defines if the storage should be encrypted or not"
default = false
}
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