Skip to content

Commit

Permalink
adds tags to service, task, and task definition (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
jritsema authored Jun 10, 2019
1 parent 2b772a3 commit a91117a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions env/dev/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ resource "aws_ecs_task_definition" "app" {
}
]
DEFINITION

tags = "${var.tags}"
}

resource "aws_ecs_service" "app" {
Expand All @@ -137,6 +139,10 @@ resource "aws_ecs_service" "app" {
container_port = "${var.container_port}"
}

tags = "${var.tags}"
enable_ecs_managed_tags = true
propagate_tags = "SERVICE"

# workaround for https://github.com/hashicorp/terraform/issues/12634
depends_on = [
"aws_alb_listener.http",
Expand Down
2 changes: 1 addition & 1 deletion env/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform {
variable "aws_profile" {}

provider "aws" {
version = ">= 1.46.0"
version = ">= 1.53.0"
region = "${var.region}"
profile = "${var.aws_profile}"
}
Expand Down

0 comments on commit a91117a

Please sign in to comment.