terraform/examples/aws-elb
Radek Simko 6cf198b70b Fix formatting of Readme in aws-elb example 2015-09-08 12:32:50 +01:00
..
README.md Fix formatting of Readme in aws-elb example 2015-09-08 12:32:50 +01:00
main.tf examples: unify the configuration file syntax 2015-08-31 10:24:07 +02:00
outputs.tf
userdata.sh
variables.tf examples: unify the configuration file syntax 2015-08-31 10:24:07 +02:00

README.md

ELB with stickiness Example

The example launches a web server, installs nginx, creates an ELB for instance. It also creates security groups for the ELB and EC2 instance.

To run, configure your AWS provider as described in https://www.terraform.io/docs/providers/aws/index.html

Run this example using:

terraform apply -var 'key_name=YOUR_KEY_NAME'

Wait a couple of minutes for the EC2 userdata to install nginx, and then type the ELB DNS Name from outputs in your browser and see the nginx welcome page