Skip to content

Commit a91117a

Browse files
authored
adds tags to service, task, and task definition (#28)
1 parent 2b772a3 commit a91117a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

env/dev/ecs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ resource "aws_ecs_task_definition" "app" {
117117
}
118118
]
119119
DEFINITION
120+
121+
tags = "${var.tags}"
120122
}
121123

122124
resource "aws_ecs_service" "app" {
@@ -137,6 +139,10 @@ resource "aws_ecs_service" "app" {
137139
container_port = "${var.container_port}"
138140
}
139141

142+
tags = "${var.tags}"
143+
enable_ecs_managed_tags = true
144+
propagate_tags = "SERVICE"
145+
140146
# workaround for https://github.com/hashicorp/terraform/issues/12634
141147
depends_on = [
142148
"aws_alb_listener.http",

env/dev/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ terraform {
1313
variable "aws_profile" {}
1414

1515
provider "aws" {
16-
version = ">= 1.46.0"
16+
version = ">= 1.53.0"
1717
region = "${var.region}"
1818
profile = "${var.aws_profile}"
1919
}

0 commit comments

Comments
 (0)