From db9f8dd4e1d3e412561124caaa94b0b773d59352 Mon Sep 17 00:00:00 2001 From: threnjen Date: Thu, 19 Dec 2024 12:19:18 -0800 Subject: [PATCH] add container startup dependencies to task definition --- aws_terraform_bgg/fargate_task_defs_rag.tf | 32 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/aws_terraform_bgg/fargate_task_defs_rag.tf b/aws_terraform_bgg/fargate_task_defs_rag.tf index bd77408..f22fdb0 100644 --- a/aws_terraform_bgg/fargate_task_defs_rag.tf +++ b/aws_terraform_bgg/fargate_task_defs_rag.tf @@ -40,7 +40,13 @@ resource "aws_ecs_task_definition" "weaviate_rag_generation" { }, secretOptions = [] }, - systemControls = [] + systemControls = [], + dependsOn = [ + { + containerName = var.weaviate_rag_server, + condition = "START" + } + ] }, { name = var.weaviate_rag_server, @@ -95,7 +101,13 @@ resource "aws_ecs_task_definition" "weaviate_rag_generation" { }, secretOptions = [] }, - systemControls = [] + systemControls = [], + dependsOn = [ + { + containerName = var.t2v-transformers, + condition = "START" + } + ] }, { name = var.t2v-transformers, @@ -190,7 +202,13 @@ resource "aws_ecs_task_definition" "dev_weaviate_rag_generation" { }, secretOptions = [] }, - systemControls = [] + systemControls = [], + dependsOn = [ + { + containerName = var.weaviate_rag_server, + condition = "START" + } + ] }, { name = var.weaviate_rag_server, @@ -245,7 +263,13 @@ resource "aws_ecs_task_definition" "dev_weaviate_rag_generation" { }, secretOptions = [] }, - systemControls = [] + systemControls = [], + dependsOn = [ + { + containerName = var.t2v-transformers, + condition = "START" + } + ] }, { name = var.t2v-transformers,