diff --git a/README.md b/README.md index f467927..a3f5b6c 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ module "ecs" { |------|-------------|:----:|:-----:|:-----:| | create\_ecs | Controls if ECS should be created | string | `"true"` | no | | name | Name to be used on all the resources as identifier, also the name of the ECS cluster | string | n/a | yes | +| tags | A map of tags to add to ECS Cluster | map | `` | no | ## Outputs diff --git a/main.tf b/main.tf index d875f62..08b4e02 100644 --- a/main.tf +++ b/main.tf @@ -10,4 +10,5 @@ resource "aws_ecs_cluster" "this" { count = "${var.create_ecs ? 1 : 0}" name = "${var.name}" + tags = "${var.tags}" } diff --git a/variables.tf b/variables.tf index 65e5165..4ca3eea 100644 --- a/variables.tf +++ b/variables.tf @@ -6,3 +6,8 @@ variable "create_ecs" { variable "name" { description = "Name to be used on all the resources as identifier, also the name of the ECS cluster" } + +variable "tags" { + description = "A map of tags to add to ECS Cluster" + default = {} +}