File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ module "ecs" {
44
44
| ------| -------------| :----:| :-----:| :-----:|
45
45
| create\_ ecs | Controls if ECS should be created | string | ` "true" ` | no |
46
46
| name | Name to be used on all the resources as identifier, also the name of the ECS cluster | string | n/a | yes |
47
+ | tags | A map of tags to add to ECS Cluster | map | ` <map> ` | no |
47
48
48
49
## Outputs
49
50
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ resource "aws_ecs_cluster" "this" {
10
10
count = " ${ var . create_ecs ? 1 : 0 } "
11
11
12
12
name = " ${ var . name } "
13
+ tags = " ${ var . tags } "
13
14
}
Original file line number Diff line number Diff line change @@ -6,3 +6,8 @@ variable "create_ecs" {
6
6
variable "name" {
7
7
description = " Name to be used on all the resources as identifier, also the name of the ECS cluster"
8
8
}
9
+
10
+ variable "tags" {
11
+ description = " A map of tags to add to ECS Cluster"
12
+ default = {}
13
+ }
You can’t perform that action at this time.
0 commit comments