From 710e24d755d92c41df60e46633134086104c2b5d Mon Sep 17 00:00:00 2001 From: Andrej Golis Date: Thu, 16 May 2024 10:48:48 +0400 Subject: [PATCH] #6 Format block as tflinter --- ecs-ec2.tf | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ecs-ec2.tf b/ecs-ec2.tf index 6c3e1f1..5463735 100644 --- a/ecs-ec2.tf +++ b/ecs-ec2.tf @@ -39,20 +39,20 @@ locals { # ECS EC2 configuration user_data = join("\n", [ - "#!/bin/bash", - "", - "cat <<'EOF' >> /etc/ecs/ecs.config", - "ECS_CLUSTER=${module.label.id}", - "ECS_LOGLEVEL=debug", - "ECS_CONTAINER_INSTANCE_TAGS=${jsonencode(module.label.tags)}", - "ECS_ENABLE_TASK_IAM_ROLE=true", - "ECS_ENABLE_HIGH_DENSITY_ENI=true", - "ECS_ENABLE_SPOT_INSTANCE_DRAINING=true", - "ECS_ENGINE_AUTH_TYPE=dockercfg", - "ECS_ENGINE_AUTH_DATA=${sensitive(try(base64decode(var.ecs_registry_auth_data), ""))}", - "EOF" + "#!/bin/bash", + "", + "cat <<'EOF' >> /etc/ecs/ecs.config", + "ECS_CLUSTER=${module.label.id}", + "ECS_LOGLEVEL=debug", + "ECS_CONTAINER_INSTANCE_TAGS=${jsonencode(module.label.tags)}", + "ECS_ENABLE_TASK_IAM_ROLE=true", + "ECS_ENABLE_HIGH_DENSITY_ENI=true", + "ECS_ENABLE_SPOT_INSTANCE_DRAINING=true", + "ECS_ENGINE_AUTH_TYPE=dockercfg", + "ECS_ENGINE_AUTH_DATA=${sensitive(try(base64decode(var.ecs_registry_auth_data), ""))}", + "EOF" ]) - # pragma: allowlist secret + # pragma: allowlist secret } module "alb" {