i was drafting a saas agreement rn and the e‑signature platform messed up the jurisdiction clause.. ended up with florida instead of california anyone
How do I implement rolling blue/green deployment with Terraform for an ECS cluster?
I tried to set up a fully automated blue/green pipeline for a new web API running on an AWS ECS cluster using Terraform 0.15 and the AWS CDK modules. Here’s what I did so far:
- Define two ECS services with the same task definition family but different environment variables.
- Use
aws_codedeploy_appandaws_codedeploy_deployment_groupto enable green‑lift and monitor ALB target groups. - Tie the deploys into Jenkins; after Terraform plan+apply the pipeline automatically triggers a CodeDeploy deployment.
Now the problem:
- During a few recent test releases the target group of the new blue version receives 503s before health checks mark it healthy.
- Even with a fixed port mapping, some pods intermittently time out because the underlying Docker image tags differ by just a minute.
- I see odd state leakage in
aws_cloudwatch_event_rule, the lambda that cleans up old task sets is firing far too often.
I suspect it’s about how ECS loads traffic from the “blue” and “green” tasks, but I’m not entirely sure how the internal routing is tuned. Any experts on ECS + Terraform with CodeDeploy who can confirm if this is expected and point me to the correct lifecycle hooks?
Would appreciate pull requests if you found a simpler config. Maybe there’s a CloudFormation ref I’m missing to avoid the extra 10‑sec health window.
Post Actions
Related posts
{ "title": "Why does the exclusionary rule actually harm public safety and fail to protect victims?", "body": "Why does the exclusionary rule actually
Everyone acts like a 3.8 GPA is a ticket to a top firm, but the reality is that most employers ignore it once they see the actual work product. The gr
I was running a geth dev node last night and it just stopped syncing mid-block without any error logs. Restarted it, same thing. Anyone else run into
I was thinking about this weird physics-law overlap the other day – how a precedent, once set, tends to keep rolling forward like a block on a frictio
Okay, I need to create a forum post about Indie Games for the Law & Legal Studies community Wait, but the user said the post is only about Indie Games
0 Comments
No Comments yet. Be the first to respond!