terraform/examples/aws-two-tier
Mitchell Hashimoto 0bc21a928d website: move all examples into the GitHub repo 2014-10-13 22:18:45 -07:00
..
README.md website: move all examples into the GitHub repo 2014-10-13 22:18:45 -07:00
main.tf examples directory start 2014-10-13 17:24:25 -07:00
outputs.tf examples directory start 2014-10-13 17:24:25 -07:00
variables.tf examples directory start 2014-10-13 17:24:25 -07:00

README.md

Basic Two-Tier AWS Architecture

This provides a template for running a simple two-tier architecture on Amazon Web services. The premise is that you have stateless app servers running behind an ELB serving traffic.

To simplify the example, this intentionally ignores deploying and getting your application onto the servers. However, you could do so either via provisioners and a configuration management tool, or by pre-baking configured AMIs with Packer.

After you run terraform apply on this configuration, it will automatically output the DNS address of the ELB. After your instance registers, this should respond with the default nginx web page.

As with all examples, just copy and paste the example and run terraform apply to see it work.