Skip to content

Commit e735488

Browse files
authored
Merge pull request #6 from asantos-fuze/add-tag-support
Add tag support for ECS module
2 parents a8db1f6 + b338ee8 commit e735488

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ module "ecs" {
4444
|------|-------------|:----:|:-----:|:-----:|
4545
| create\_ecs | Controls if ECS should be created | string | `"true"` | no |
4646
| 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 |
4748

4849
## Outputs
4950

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ resource "aws_ecs_cluster" "this" {
1010
count = "${var.create_ecs ? 1 : 0}"
1111

1212
name = "${var.name}"
13+
tags = "${var.tags}"
1314
}

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ variable "create_ecs" {
66
variable "name" {
77
description = "Name to be used on all the resources as identifier, also the name of the ECS cluster"
88
}
9+
10+
variable "tags" {
11+
description = "A map of tags to add to ECS Cluster"
12+
default = {}
13+
}

0 commit comments

Comments
 (0)