github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/examples/aws-two-tier/README.md (about) 1 # Basic Two-Tier AWS Architecture 2 3 This provides a template for running a simple two-tier architecture on Amazon 4 Web services. The premise is that you have stateless app servers running behind 5 an ELB serving traffic. 6 7 To simplify the example, this intentionally ignores deploying and 8 getting your application onto the servers. However, you could do so either via 9 [provisioners](https://www.terraform.io/docs/provisioners/) and a configuration 10 management tool, or by pre-baking configured AMIs with 11 [Packer](http://www.packer.io). 12 13 After you run `terraform apply` on this configuration, it will 14 automatically output the DNS address of the ELB. After your instance 15 registers, this should respond with the default nginx web page. 16 17 To run, configure your AWS provider as described in 18 19 https://www.terraform.io/docs/providers/aws/index.html 20 21 Run with a command like this: 22 23 ``` 24 terraform apply -var 'key_name={your_aws_key_name}' \ 25 -var 'key_path={location_of_your_key_in_your_local_machine}'` 26 ``` 27 28 For example: 29 30 ``` 31 terraform apply -var 'key_name=terraform' -var 'key_path=/Users/jsmith/.ssh/terraform.pem' 32 ```