Skip to content

Commit

Permalink
Add tag support for ECS module
Browse files Browse the repository at this point in the history
  • Loading branch information
asantos-fuze committed Mar 8, 2019
1 parent a8db1f6 commit b338ee8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `<map>` | no |

## Outputs

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ resource "aws_ecs_cluster" "this" {
count = "${var.create_ecs ? 1 : 0}"

name = "${var.name}"
tags = "${var.tags}"
}
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
}

0 comments on commit b338ee8

Please sign in to comment.