From dc66d9c29a4c8a02077cebadcd303c862bd4f906 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Tue, 11 Dec 2018 15:58:16 +0000 Subject: [PATCH] (Chore) Add environment to service name --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 6e6d536..6840de9 100644 --- a/main.tf +++ b/main.tf @@ -10,7 +10,7 @@ resource "aws_ecs_task_definition" "main" { } resource "aws_ecs_service" "main" { - name = "${var.service_name}" + name = "${var.environment}-${var.service_name}" iam_role = "${var.ecs_service_role}" cluster = "${var.ecs_cluster_id}" task_definition = "${aws_ecs_task_definition.main.arn}"