Skip to content

Commit

Permalink
#6 Format block as tflinter
Browse files Browse the repository at this point in the history
  • Loading branch information
agno01 committed May 16, 2024
1 parent e670919 commit 710e24d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ecs-ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 710e24d

Please sign in to comment.