This module is used to create an application load balancer along with security groups for traffic and a default target group. It was previously published at https://github.com/silinternational/terraform-modules/aws/alb.
- ALB named after
app_name
andapp_env
- ALB target group
- HTTPS listener for ALB / Target Group
This module is published in Terraform Registry.
module "asg" {
source = "silinternational/alb"
version = "0.1.0"
app_name = var.app_name
app_env = var.app_env
vpc_id = module.vpc.id
security_groups = [module.vpc.vpc_default_sg_id,module.cloudflare-sg.id]
subnets = [module.vpc.public_subnet_ids]
certificate_arn = data.aws_acm_certificate.name.arn
}