From 1b4e8d687ce23e537a3bcdaeef6226b577439af9 Mon Sep 17 00:00:00 2001 From: devsjc <47188100+devsjc@users.noreply.github.com> Date: Thu, 9 Nov 2023 17:31:55 +0000 Subject: [PATCH] Add validation on ecs task size variable (#326) --- .../services/nwp_consumer/variables.tf | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/terraform/modules/services/nwp_consumer/variables.tf b/terraform/modules/services/nwp_consumer/variables.tf index 8dab6d17..d3c426dc 100644 --- a/terraform/modules/services/nwp_consumer/variables.tf +++ b/terraform/modules/services/nwp_consumer/variables.tf @@ -86,6 +86,50 @@ variable ecs-task_type { default = "task" } +variable ecs-task_size { + + type = object({ + cpu = number + memory = number + }) + + description = <