Internal ELB creation for autoscaling groups using terraform

Terraform script for creation of internal ELB is a bit tricky compared to usual ELB. Internal ELB is used between private networks within a ELB. These are used mainly for load balancing services within a private VPC network.

The most important attribute to be added for an Internal ELB is “internal = true” .  The subnets to be added should be internal private subnets. Make sure to add security groups with limited access port permissions.

Internal ELB

Auto scaling group