New Terraform Tutorial: Use Application Load Balancers for Blue-Green and Canary Deployments
Learn how to use application load balancers for blue-green and canary deployments with this new tutorial on HashiCorp Learn.
Blue-green deployments and rolling upgrades (canary tests) allow you to release new software gradually and mitigate the potential blast radius of a failed release. Using this pattern, you can release new software with near-zero downtime.
In the new tutorial, Use Application Load Balancers for Blue-Green and Canary Deployments, you will use a combination of blue-green, canary, and rolling deployments to incrementally promote a new application version via HashiCorp Terraform feature toggles and an AWS application load balancer (ALB).
The ALB automatically distributes incoming traffic to the appropriate service at the application layer. ALBs are different from classic load balancers, which only route traffic to EC2 instances across multiple availability zones. You can define an ALB's listeners (rules) and target groups to dynamically route traffic to services. These rules enable you to run canary tests on and incrementally promote the green environment.
» What You’ll Learn
By the end of this tutorial, you will know how to use an application load balancer to incrementally deploy a new application release. In addition, you will have implemented feature toggles to codify and run three advanced deployment techniques in a consistent, reliable manner.
Sign up for the latest HashiCorp news
More blog posts like this one
Fix the developers vs. security conflict by shifting further left
Resolve the friction between dev and security teams with platform-led workflows that make cloud security seamless and scalable.
HashiCorp at AWS re:Invent: Your blueprint to cloud success
If you’re attending AWS re:Invent in Las Vegas, Dec. 2 - Dec. 6th, visit us for breakout sessions, expert talks, and product demos to learn how to take a unified approach to Infrastructure and Security Lifecycle Management.
Speed up app delivery with automated cancellation of plan-only Terraform runs
Automatic cancellation of plan-only runs allows customers to easily cancel any unfinished runs for outdated commits to speed up application delivery.