File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
all_tags = merge (
9
9
{
10
10
Terraform = " true"
11
- Environment = var.environment_tag
12
11
},
12
+ var. environment_tag != " " ? { Environment = var.environment_tag } : {},
13
13
var. common_tags
14
14
)
15
15
}
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ provider "aws" {
5
5
tags = merge (
6
6
{
7
7
Terraform = " true"
8
- Environment = var.environment_tag
9
8
},
9
+ var. environment_tag != " " ? { Environment = var.environment_tag } : {},
10
10
var. common_tags
11
11
)
12
12
}
Original file line number Diff line number Diff line change 10
10
# }
11
11
12
12
# Deployment identifier
13
- environment_tag = " production"
13
+ # # Places an Environment tag on all resources created by this module
14
+ environment_tag = " deployment-development"
14
15
15
16
# #######################
16
17
# ### Module toggles ####
Original file line number Diff line number Diff line change @@ -384,4 +384,5 @@ variable "common_tags" {
384
384
variable "environment_tag" {
385
385
description = " Deployment identifier"
386
386
type = string
387
+ default = " "
387
388
}
You can’t perform that action at this time.
0 commit comments