From e529810dfa86ab002b14140b02113074703212ac Mon Sep 17 00:00:00 2001 From: devsjc Date: Thu, 9 Nov 2023 17:19:39 +0000 Subject: [PATCH] Add validation on ecs task size variable --- .../services/nwp_consumer/variables.tf | 64 ++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/terraform/modules/services/nwp_consumer/variables.tf b/terraform/modules/services/nwp_consumer/variables.tf index 8dab6d17..7f0d9c89 100644 --- a/terraform/modules/services/nwp_consumer/variables.tf +++ b/terraform/modules/services/nwp_consumer/variables.tf @@ -86,6 +86,68 @@ variable ecs-task_type { default = "task" } +variable ecs-task_size { + + type = object({ + cpu = number + memory = number + }) + + description = <