Skip to content

cg-dv/terraform-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx on EC2

Terraform configuraton defining a VPC, an Internet Gateway, an application load balancer (ALB), EC2 instances in an auto scaling group (ASG) across two availability zones, and a web security group. The launch configuration defined for the auto scaling group includes a script to install and start nginx on each EC2 instance.

Diagram

Usage

Initalize Terraform:

terraform init

Build infrastructure:

terraform apply

Outputs

The only output for this config is the ALB URL. This architecture does not use an SSL certificate. The traffic to/from the ALB will be over HTTP if you build/deploy this Terraform config - so remove the 'S' from the default 'https' URL that AWS uses for ALB URLs while testing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages