Skip to content

An example of terraform that will create EC2 instances and deploy a web page on it.

License

Notifications You must be signed in to change notification settings

dwardu89/terraform-amazon-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Infrastructure for AWS

This solution uses terraform to deploy an AWS infrastrucure that creates an AWS Instance, and creates an image out of it. This instances comes with a small script that will pull the web page from the s3 bucket into a newly created AMI.

It will create an autoscaling policy for that instance and passes it through an Application Load Balancer. The application uses the instance previously created.

There is also a Route53 specification which allows the load balancer to have a given domain name.

In order to run the solution you need to have terraform installed, navigate to the directory and run:

terraform apply \
-var ‘access_key={}’ \
-var ‘secret_key={}’ \
-var ‘region={}’ \
-var ‘availability_zones=[{}] \
-var ‘ssh_key_name={}’ \
-var ‘domain_name={}’ \
-var ‘s3_bucket_name_website={}‘

About

An example of terraform that will create EC2 instances and deploy a web page on it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published