/training-asg-lab

Demo on how to deploy on AWS AutoScaling Group with Application Load Balancer using Terraform

Primary LanguageHCL

Application Load Balancer and AutoScalation Group on AWS

Status

Terraform deployment for alb

Context

This project is set to build a demo of the Autoscaling Group and Load Balancer in AWS:

  • Security Groups for LB and Servers
  • Launch Template
  • Target Groups
  • Load Balancer
  • Load Balancer Attachement

ALB and RDS

Requirements

No requirements.

Providers

Name Version
aws 4.34.0

Modules

No modules.

Resources

Name Type
aws_autoscaling_attachment.blue_asg_tg resource
aws_autoscaling_attachment.green_asg_tg resource
aws_autoscaling_group.blue_asg resource
aws_autoscaling_group.green_asg resource
aws_launch_template.blue_template resource
aws_launch_template.green_template resource
aws_lb.blue_green_website resource
aws_lb_listener.blue_green_listener resource
aws_lb_target_group.blue_tg resource
aws_lb_target_group.green_tg resource
aws_route_table.rt_pub_subnet_b resource
aws_route_table_association.pub_assoc-b resource
aws_security_group.app_server resource
aws_security_group.blue_green_lb resource
aws_subnet.pub_subnet_b resource
aws_ami.ubuntu_image data source
aws_internet_gateway.ig data source
aws_subnet.priv_subnet_1 data source
aws_subnet.priv_subnet_2 data source
aws_subnet.pub_subnet data source
aws_vpc.vpc data source

Inputs

Name Description Type Default Required
ami_name The name of the ami string n/a yes
aws_ami_owner The owner id of the ami string n/a yes
aws_pub_subnet_cidr_block_b IP range for the public subnet b string n/a yes
aws_region Region to deploy string n/a yes
ig n/a any n/a yes
instance_type n/a any n/a yes
keypair The owner id of the ami string n/a yes
priv_subnet_a Private subnet string n/a yes
priv_subnet_b n/a any n/a yes
pub_subnet n/a any n/a yes
vpc_name n/a any n/a yes

Outputs

No outputs.