terraform/examples/aws-elb/README.md

16 lines
694 B
Markdown
Raw Normal View History

2015-06-09 22:12:33 +02:00
# ELB with stickiness Example
2015-08-27 21:42:36 +02:00
The example launches a web server, installs nginx, creates an ELB for instance. It also creates security groups for the ELB and EC2 instance.
2015-06-09 22:12:33 +02:00
To run, configure your AWS provider as described in https://www.terraform.io/docs/providers/aws/index.html
2017-01-13 23:08:40 +01:00
This example assumes you have created a Key Pair. Visit
https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#KeyPairs:sort=keyName
to create a key if you do not have one.
2015-08-27 21:42:36 +02:00
Run this example using:
2015-06-09 22:12:33 +02:00
terraform apply -var 'key_name=YOUR_KEY_NAME'
2015-06-09 22:12:33 +02:00
2015-08-27 21:42:36 +02:00
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