Skip to content

Commit

Permalink
add container startup dependencies to task definition
Browse files Browse the repository at this point in the history
  • Loading branch information
threnjen committed Dec 19, 2024
1 parent aca8000 commit db9f8dd
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions aws_terraform_bgg/fargate_task_defs_rag.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit db9f8dd

Please sign in to comment.