Wait for ALB Health Check Until After Codebuild Pushes Image To ECS

Hey Everyone,

I’m new to Terraform. We are using Codepipeline and Codebuild to deploy our app. The issue seems to be that TF creates all the resources and when it creates the load balancer it starts the health check immediately, but it fails because Codebuild didn’t finish and push the image to ECS. Is there a way to delay the health check until after Codebuild finishes?