From 4ac1e91aa80bac9c81dfc520ae322a069454a35b Mon Sep 17 00:00:00 2001 From: xss Date: Sat, 19 Mar 2022 16:01:15 +1100 Subject: [PATCH] format --- ham_ingestion.tf | 4 ++-- historic.tf | 6 +++--- ingestion.tf | 4 ++-- predictor.tf | 6 +++--- websockets.tf | 28 ++++++++++++++-------------- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/ham_ingestion.tf b/ham_ingestion.tf index 1b41a66..ba9e0a8 100644 --- a/ham_ingestion.tf +++ b/ham_ingestion.tf @@ -236,8 +236,8 @@ resource "aws_lambda_function" "ham_sns_to_mqtt" { vpc_config { security_group_ids = [ "sg-05f795128b295c504", - ] - subnet_ids = [ + ] + subnet_ids = [ aws_subnet.private["us-east-1b"].id ] } diff --git a/historic.tf b/historic.tf index f565623..1e6303c 100644 --- a/historic.tf +++ b/historic.tf @@ -121,9 +121,9 @@ resource "aws_sqs_queue" "historic_to_s3" { } resource "aws_sqs_queue" "historic_to_s3_dlq" { - name = "update-history-dlq" - receive_wait_time_seconds = 1 - message_retention_seconds = 1209600 # 14 days + name = "update-history-dlq" + receive_wait_time_seconds = 1 + message_retention_seconds = 1209600 # 14 days visibility_timeout_seconds = 10 } diff --git a/ingestion.tf b/ingestion.tf index 1dda4af..330a920 100644 --- a/ingestion.tf +++ b/ingestion.tf @@ -134,8 +134,8 @@ resource "aws_lambda_function" "sns_to_mqtt" { vpc_config { security_group_ids = [ "sg-05f795128b295c504", - ] - subnet_ids = [ + ] + subnet_ids = [ aws_subnet.private["us-east-1b"].id ] } diff --git a/predictor.tf b/predictor.tf index 51d0793..9554302 100644 --- a/predictor.tf +++ b/predictor.tf @@ -212,8 +212,8 @@ resource "aws_ecs_task_definition" "tawhiri" { "-c", "import urllib.request; import json; import datetime; import sys; sys.exit(0) if len(json.loads(urllib.request.urlopen(f'http://localhost:8000/api/v1/?launch_latitude=51.77542999852449&launch_longitude=15.553199937567115&launch_datetime={datetime.datetime.now().strftime(\"%Y-%m-%dT%H:%M:%SZ\")}&launch_altitude=0&ascent_rate=5.00&burst_altitude=14030.77&descent_rate=5.28').read())['prediction'][0]['trajectory']) > 0 else sys.exit(1)" ] - timeout = 20 - interval = 60 + timeout = 20 + interval = 60 startPeriod = 30 } command = [ @@ -449,7 +449,7 @@ resource "aws_ecs_service" "tawhiri" { platform_version = "LATEST" desired_count = 1 enable_execute_command = true - + load_balancer { container_name = "tawhiri" container_port = 8000 diff --git a/websockets.tf b/websockets.tf index 1281883..0e53f6a 100644 --- a/websockets.tf +++ b/websockets.tf @@ -725,21 +725,21 @@ resource "aws_iam_role_policy" "ssm" { role = aws_iam_role.ecs_execution.id policy = jsonencode( - { - Statement = [ - { - Action = [ - "ssmmessages:CreateControlChannel", - "ssmmessages:CreateDataChannel", - "ssmmessages:OpenControlChannel", - "ssmmessages:OpenDataChannel", - ] - Effect = "Allow" - Resource = "*" - } + { + Statement = [ + { + Action = [ + "ssmmessages:CreateControlChannel", + "ssmmessages:CreateDataChannel", + "ssmmessages:OpenControlChannel", + "ssmmessages:OpenDataChannel", ] - Version = "2012-10-17" - } + Effect = "Allow" + Resource = "*" + } + ] + Version = "2012-10-17" + } ) }