From 40505c03ddb98e4e1acf170bd40ad92aca14279f Mon Sep 17 00:00:00 2001 From: dmattia Date: Fri, 23 Oct 2020 16:27:49 -0500 Subject: [PATCH] preserve container order --- main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index 0ec596a..c3993b8 100644 --- a/main.tf +++ b/main.tf @@ -138,14 +138,14 @@ module service { alb_security_group_ids = module.load_balancer.security_group_ids container_definitions = format( "[%s]", - join(",", setunion( + join(",", distinct(concat( [module.container_definition.json_map], var.extra_container_definitions - )) + ))) ) - additional_task_policy_arns = concat([ - aws_iam_policy.kms_policy.arn], + additional_task_policy_arns = concat( + [aws_iam_policy.kms_policy.arn], module.container_definition.secrets_policy_arns, var.extra_task_policy_arns )