From d5007f57c715a3cf996d36a5bc7beba6719e92a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Thu, 18 Apr 2024 19:55:00 +0200 Subject: [PATCH] WIP --- tf/modules/ecs_cluster/variables.tf | 1 + tf/modules/ooniapi_service/variables.tf | 1 + tf/modules/oonith_service/main.tf | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tf/modules/ecs_cluster/variables.tf b/tf/modules/ecs_cluster/variables.tf index 128ec72a..fefb99d3 100644 --- a/tf/modules/ecs_cluster/variables.tf +++ b/tf/modules/ecs_cluster/variables.tf @@ -17,6 +17,7 @@ variable "vpc_id" { variable "subnet_ids" { description = "the ids of the subnet of the subnets to deploy the instance into" + type = list(string) } variable "tags" { diff --git a/tf/modules/ooniapi_service/variables.tf b/tf/modules/ooniapi_service/variables.tf index a8e7044d..83a589f0 100644 --- a/tf/modules/ooniapi_service/variables.tf +++ b/tf/modules/ooniapi_service/variables.tf @@ -25,6 +25,7 @@ variable "vpc_id" { variable "subnet_ids" { description = "the ids of the subnet of the subnets to deploy the instance into" + type = list(string) } variable "tags" { diff --git a/tf/modules/oonith_service/main.tf b/tf/modules/oonith_service/main.tf index 5cd10679..01c22c7c 100644 --- a/tf/modules/oonith_service/main.tf +++ b/tf/modules/oonith_service/main.tf @@ -66,10 +66,10 @@ resource "aws_ecs_task_definition" "oonith_service" { memory = var.task_memory, name = local.name, - portMappings = [ { containerPort = local.container_port, + hostPort = local.container_port, } ], environment = [