From b3f44c12db2cefbd452b962498707745b1ec8725 Mon Sep 17 00:00:00 2001 From: Max Wardle Date: Fri, 8 Dec 2023 10:32:17 -0800 Subject: [PATCH 1/4] increased resources for the billing runner --- terraform/operations-account/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/operations-account/main.tf b/terraform/operations-account/main.tf index afa2e5b..7586c08 100644 --- a/terraform/operations-account/main.tf +++ b/terraform/operations-account/main.tf @@ -304,8 +304,8 @@ resource "aws_ecs_task_definition" "billing_reports_ecs_task" { family = "${local.app_name}-ecs-task" network_mode = "awsvpc" requires_compatibilities = ["FARGATE"] - cpu = "2048" - memory = "8192" + cpu = "8192" # This needs to be high for the quarterly billing report to run to completion + memory = "32768" # This needs to be high for the quarterly billing report to run to completion execution_role_arn = aws_iam_role.ecs_task_exec_role.arn task_role_arn = aws_iam_role.ecs_task_role.arn runtime_platform { From 9bfdf4f4503d7d72fbe5d91c845bab93d18796ba Mon Sep 17 00:00:00 2001 From: Max Wardle Date: Fri, 8 Dec 2023 14:33:08 -0800 Subject: [PATCH 2/4] formatting fix --- terraform/operations-account/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/operations-account/main.tf b/terraform/operations-account/main.tf index 7586c08..c2f07a5 100644 --- a/terraform/operations-account/main.tf +++ b/terraform/operations-account/main.tf @@ -304,8 +304,8 @@ resource "aws_ecs_task_definition" "billing_reports_ecs_task" { family = "${local.app_name}-ecs-task" network_mode = "awsvpc" requires_compatibilities = ["FARGATE"] - cpu = "8192" # This needs to be high for the quarterly billing report to run to completion - memory = "32768" # This needs to be high for the quarterly billing report to run to completion + cpu = "8192" # This needs to be high for the quarterly billing report to run to completion + memory = "32768" # This needs to be high for the quarterly billing report to run to completion execution_role_arn = aws_iam_role.ecs_task_exec_role.arn task_role_arn = aws_iam_role.ecs_task_role.arn runtime_platform { From 00784bca8afdf3855a0213e907458caa17c8538e Mon Sep 17 00:00:00 2001 From: Max Wardle Date: Fri, 8 Dec 2023 14:37:23 -0800 Subject: [PATCH 3/4] formatiing fix 2 --- terraform/operations-account/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/operations-account/main.tf b/terraform/operations-account/main.tf index c2f07a5..e8d8927 100644 --- a/terraform/operations-account/main.tf +++ b/terraform/operations-account/main.tf @@ -304,8 +304,8 @@ resource "aws_ecs_task_definition" "billing_reports_ecs_task" { family = "${local.app_name}-ecs-task" network_mode = "awsvpc" requires_compatibilities = ["FARGATE"] - cpu = "8192" # This needs to be high for the quarterly billing report to run to completion - memory = "32768" # This needs to be high for the quarterly billing report to run to completion + cpu = "8192" # This needs to be high for the quarterly billing report to run to completion + memory = "32768" # This needs to be high for the quarterly billing report to run to completion execution_role_arn = aws_iam_role.ecs_task_exec_role.arn task_role_arn = aws_iam_role.ecs_task_role.arn runtime_platform { From 8e92e46dc908dfe7468bbcc548a0722638bd0e46 Mon Sep 17 00:00:00 2001 From: Warren Uniewski Date: Mon, 11 Dec 2023 14:49:15 -0800 Subject: [PATCH 4/4] Update terraform-validate.yaml use github action to handle provider aliases --- .github/workflows/terraform-validate.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/terraform-validate.yaml b/.github/workflows/terraform-validate.yaml index 742367b..988c7f2 100644 --- a/.github/workflows/terraform-validate.yaml +++ b/.github/workflows/terraform-validate.yaml @@ -9,6 +9,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: hashicorp/setup-terraform@v2 + - uses: bendrucker/terraform-configuration-aliases-action@v1 - name: terraform init run: terraform init -input=false -backend=false