From c619b9b296490b938867afca7b4111137d780b90 Mon Sep 17 00:00:00 2001 From: Michaela Wheeler Date: Wed, 12 Jan 2022 21:01:02 +1100 Subject: [PATCH] fix formatting --- ham_aprs.tf | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/ham_aprs.tf b/ham_aprs.tf index 178eac8..a2dfecc 100644 --- a/ham_aprs.tf +++ b/ham_aprs.tf @@ -1,6 +1,6 @@ resource "aws_ecs_task_definition" "aprsgw" { - family = "aprsgw" + family = "aprsgw" runtime_platform { cpu_architecture = "ARM64" } @@ -8,14 +8,14 @@ resource "aws_ecs_task_definition" "aprsgw" { [ { cpu = 0 - "environment": [ - {"name": "AWS_REGION", "value": "us-east-1"}, - {"name": "AWS_DEFAULT_REGION", "value": "us-east-1"}, - {"name": "CALLSIGN", "value": "VK3FUR"}, - {"name": "SNS", "value": aws_sns_topic.ham_telem.arn} + "environment" : [ + { "name" : "AWS_REGION", "value" : "us-east-1" }, + { "name" : "AWS_DEFAULT_REGION", "value" : "us-east-1" }, + { "name" : "CALLSIGN", "value" : "VK3FUR" }, + { "name" : "SNS", "value" : aws_sns_topic.ham_telem.arn } ], - essential = true - image = "143841941773.dkr.ecr.us-east-1.amazonaws.com/aprsgw:latest" + essential = true + image = "143841941773.dkr.ecr.us-east-1.amazonaws.com/aprsgw:latest" logConfiguration = { logDriver = "awslogs" options = { @@ -24,11 +24,11 @@ resource "aws_ecs_task_definition" "aprsgw" { awslogs-stream-prefix = "ecs" } } - mountPoints = [] - name = "aprsgw" - portMappings = [ ] - ulimits = [] - volumesFrom = [] + mountPoints = [] + name = "aprsgw" + portMappings = [] + ulimits = [] + volumesFrom = [] }, ] ) @@ -96,18 +96,18 @@ resource "aws_ecs_cluster" "aprsgw" { resource "aws_ecs_service" "aprsgw" { - name = "aprsgw" - cluster = aws_ecs_cluster.aprsgw.id - task_definition = aws_ecs_task_definition.aprsgw.arn - enable_ecs_managed_tags = true - launch_type = "FARGATE" - platform_version = "LATEST" - desired_count = 1 + name = "aprsgw" + cluster = aws_ecs_cluster.aprsgw.id + task_definition = aws_ecs_task_definition.aprsgw.arn + enable_ecs_managed_tags = true + launch_type = "FARGATE" + platform_version = "LATEST" + desired_count = 1 network_configuration { assign_public_ip = true - security_groups = [] - subnets = [aws_subnet.public["us-east-1b"].id] + security_groups = [] + subnets = [aws_subnet.public["us-east-1b"].id] } } \ No newline at end of file