From 0a54c7bf07bca63d3de05553dbeaa970a015e52e Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Tue, 8 Aug 2023 10:22:03 +0100 Subject: [PATCH 1/2] Use strings for cpu / memory values --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index d402d7c..96a7250 100644 --- a/main.tf +++ b/main.tf @@ -402,8 +402,8 @@ resource "aws_ecs_task_definition" "cloud-agent" { count = var.create ? 1 : 0 family = "depot-connection-${var.connection-id}-cloud-agent" requires_compatibilities = ["FARGATE"] - cpu = 2048 - memory = 4096 + cpu = "2048" + memory = "4096" network_mode = "awsvpc" execution_role_arn = aws_iam_role.execution-role[0].arn task_role_arn = aws_iam_role.cloud-agent[0].arn From 2555170be66850929d18ce11c547289d85916e9c Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Tue, 8 Aug 2023 10:40:37 +0100 Subject: [PATCH 2/2] Remove duplicate env var --- main.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/main.tf b/main.tf index 96a7250..3c6cfac 100644 --- a/main.tf +++ b/main.tf @@ -423,7 +423,6 @@ resource "aws_ecs_task_definition" "cloud-agent" { { name = "CLOUD_AGENT_CONNECTION_ID", value = var.connection-id }, { name = "CLOUD_AGENT_SERVICE_NAME", value = local.service-name }, { name = "CLOUD_AGENT_TF_MODULE_VERSION", value = local.version }, - { name = "CLOUD_AGENT_TF_MODULE_VERSION", value = local.version }, { name = "CLOUD_AGENT_CEPH_CONFIG", value = var.ceph-config }, # This environment variable is unused, but causes ECS to redeploy if the connection token changes