Configuring AWS Application Load Balancer for Zero Downtime Applications

Although we have set up resources AWS by terraform, there are contains many component, with big complexity but we even need to config some resource to application working without errors.

1. Config security group to communicate between private resources

The mean this step is enable communication between resource in private subnet, by default resources in private subnet will refuse any connection if we don’t have config security.

Step config is go to AWS console => EC2 => Security Group create_admin_user.png

Edit inbound rules

Click to Edit inbound rules create_admin_user.png create_admin_user.png

Inbound configure successfully create_admin_user.png

Edit outbound rules

create_admin_user.png create_admin_user.png

2. Config Target Group For Application Load Balancer

Config target for load balancer, load balancer will forward request from cloudfront to Nginx-Controller inside EKS Cluster. Follow steps:

  1. Click to alb-target-group create_admin_user.png
  2. Register target group create_admin_user.png
  • Port 30080 is NodePort of Nginx Controller.
  1. At tab Health checks, click to Edit create_admin_user.png create_admin_user.png
  2. Config heath check successfully create_admin_user.png

After successfully config health check, application load balancer will forward request to nginx-controller.