From ccafe5b8d296a2dcf8bf732c30933e790a9c83dd Mon Sep 17 00:00:00 2001 From: topher-lo <46541035+topher-lo@users.noreply.github.com> Date: Thu, 5 Dec 2024 21:21:15 -0800 Subject: [PATCH] ci(infra): API depends on registry --- deployments/aws/ecs/ecs-api.tf | 5 +---- deployments/aws/ecs/ecs-registry.tf | 10 ---------- deployments/aws/ecs/ecs-worker.tf | 8 +------- 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/deployments/aws/ecs/ecs-api.tf b/deployments/aws/ecs/ecs-api.tf index 71c3cd8b4..9e471ee0d 100644 --- a/deployments/aws/ecs/ecs-api.tf +++ b/deployments/aws/ecs/ecs-api.tf @@ -36,10 +36,6 @@ resource "aws_ecs_task_definition" "api_task_definition" { } } ]) - - depends_on = [ - aws_ecs_service.temporal_service - ] } resource "aws_ecs_service" "tracecat_api" { @@ -85,6 +81,7 @@ resource "aws_ecs_service" "tracecat_api" { depends_on = [ aws_ecs_service.temporal_service, + aws_ecs_service.tracecat_registry ] } diff --git a/deployments/aws/ecs/ecs-registry.tf b/deployments/aws/ecs/ecs-registry.tf index 37a8a5497..098070233 100644 --- a/deployments/aws/ecs/ecs-registry.tf +++ b/deployments/aws/ecs/ecs-registry.tf @@ -46,11 +46,6 @@ resource "aws_ecs_task_definition" "registry_task_definition" { } } ]) - - depends_on = [ - aws_ecs_service.tracecat_api, - aws_ecs_service.tracecat_worker - ] } resource "aws_ecs_service" "tracecat_registry" { @@ -93,9 +88,4 @@ resource "aws_ecs_service" "tracecat_registry" { } } } - - depends_on = [ - aws_ecs_service.tracecat_api, - aws_ecs_service.tracecat_worker - ] } diff --git a/deployments/aws/ecs/ecs-worker.tf b/deployments/aws/ecs/ecs-worker.tf index 202034af0..2e52469c9 100644 --- a/deployments/aws/ecs/ecs-worker.tf +++ b/deployments/aws/ecs/ecs-worker.tf @@ -37,11 +37,6 @@ resource "aws_ecs_task_definition" "worker_task_definition" { } } ]) - - depends_on = [ - aws_ecs_service.temporal_service, - aws_ecs_task_definition.temporal_task_definition, - ] } resource "aws_ecs_service" "tracecat_worker" { @@ -86,7 +81,6 @@ resource "aws_ecs_service" "tracecat_worker" { } depends_on = [ - aws_ecs_service.temporal_service, - aws_ecs_service.tracecat_api, + aws_ecs_service.temporal_service ] }