From 669723acdc960e2eab3cbd16193f3e96d074eb2d Mon Sep 17 00:00:00 2001 From: Prophecy67 Date: Wed, 10 Jun 2020 14:43:12 +0200 Subject: [PATCH 1/3] Update variables.tf Add platform_version variable --- variables.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/variables.tf b/variables.tf index 629a92c..d73efb4 100644 --- a/variables.tf +++ b/variables.tf @@ -255,3 +255,8 @@ variable scaling_threshold { description = "The desired value for the `scaling_metric`. Defaults to 70%." default = 70 } + +variable platform_version { + description = "The platform version on which to run your service. Only applicable for launch_type set to FARGATE. Defaults to LATEST." + default = "LATEST" + } From 785945abc91a104c49824ad0304f6baf31900582 Mon Sep 17 00:00:00 2001 From: Prophecy67 Date: Wed, 10 Jun 2020 14:44:38 +0200 Subject: [PATCH 2/3] Update main.tf Add platform_version to service resource --- main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/main.tf b/main.tf index c54be88..9e8e0e2 100644 --- a/main.tf +++ b/main.tf @@ -111,6 +111,7 @@ resource aws_ecs_service service { name = var.name cluster = var.cluster_name launch_type = var.launch_type + platform_version = var.platform_version task_definition = aws_ecs_task_definition.task.arn desired_count = var.desired_count deployment_minimum_healthy_percent = var.deployment_minimum_healthy_percent From d5da47632c95ecc4df714b5a54cab5c5a5cea86b Mon Sep 17 00:00:00 2001 From: Prophecy67 Date: Thu, 11 Jun 2020 11:35:32 +0200 Subject: [PATCH 3/3] Update variables.tf Cleaning up indentation --- variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variables.tf b/variables.tf index d73efb4..f81b0fe 100644 --- a/variables.tf +++ b/variables.tf @@ -258,5 +258,5 @@ variable scaling_threshold { variable platform_version { description = "The platform version on which to run your service. Only applicable for launch_type set to FARGATE. Defaults to LATEST." - default = "LATEST" - } + default = "LATEST" +}