From 364b9cd3d0e9ce55ded54b3cec6793e6d74d812d Mon Sep 17 00:00:00 2001 From: Sergei Ugdyzhekov Date: Sat, 18 Jul 2020 22:15:11 +0200 Subject: [PATCH] Update default tag values --- variables.tf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/variables.tf b/variables.tf index 49ed915..a47356c 100644 --- a/variables.tf +++ b/variables.tf @@ -1,7 +1,6 @@ variable "tags" { description = "Tags." type = map(string) - default = {} } variable "name" { description = "Prefix of your network name, 'RDS' or 'App' e.g." @@ -27,8 +26,7 @@ locals { route_table = var.route_table vpc_id = data.aws_route_table.current.vpc_id subnet_cidr = var.subnet_cidr - purpose = title(var.name) - name = "${local.purpose} ${var.type}" + name = var.name type = lower(var.type) az = var.zone tags = merge({