This project demonstrates the implementation of a high availability infrastructure in AWS using Auto Scaling Groups (ASG) and Elastic Load Balancers (ELB) with Terraform. It also includes the setup of VPC, subnets, Internet Gateway (IG), and route tables.
No requirements.
Name | Version |
---|---|
aws | 5.68.0 |
No modules.
Name | Type |
---|---|
aws_autoscaling_group.asg | resource |
aws_internet_gateway.igw | resource |
aws_launch_template.ec2-template | resource |
aws_lb.alb | resource |
aws_lb_listener.alb-listener | resource |
aws_lb_target_group.target-group | resource |
aws_route_table.public-route-table | resource |
aws_route_table_association.prta-1 | resource |
aws_route_table_association.prta-2 | resource |
aws_security_group.alb_security_group | resource |
aws_security_group.asg-sg | resource |
aws_subnet.web-subnet1 | resource |
aws_subnet.web-subnet2 | resource |
aws_vpc.vpc | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
ami-launch-template | Value for EC2 AMI | string |
n/a | yes |
az-1 | Value for AZ 1 | string |
n/a | yes |
az-2 | Value for AZ 2 | string |
n/a | yes |
capacity | Value for desired instances | number |
n/a | yes |
department | Value for Department | string |
n/a | yes |
environment | Value for Environment | string |
"DEV" |
no |
health-check-type | Value for type of health check | string |
n/a | yes |
igw-name | Value for Internet GateWay | string |
n/a | yes |
instance-type | Value for instance type | string |
n/a | yes |
key-name | Value for key name | string |
n/a | yes |
max-size | Value for maximum instances runing | number |
n/a | yes |
min-size | Value for minimum instances runing | number |
n/a | yes |
name-project | Value for name of project | string |
n/a | yes |
owner | Value for Owner name | string |
n/a | yes |
project | Value for Project number | string |
n/a | yes |
region | Value for region on AWS | string |
n/a | yes |
vpc-cidr-block | Value for CIDR of VPC | any |
n/a | yes |
vpc-name | Value for name of VPC | string |
n/a | yes |
web-subnet1-cidr | Value dor web subnet-1 cidr | string |
n/a | yes |
web-subnet1-name | Value for web subnet1 name | string |
n/a | yes |
web-subnet2-cidr | Value dor web subnet-2 cidr | string |
n/a | yes |
web-subnet2-name | Value for web subnet2 name | string |
n/a | yes |
Name | Description |
---|---|
dns | value = aws_lb.alb.dns_name |