terraform/website/intro/examples/aws.html.markdown

29 lines
1.2 KiB
Markdown
Raw Normal View History

2014-07-28 19:43:00 +02:00
---
layout: "intro"
2017-04-06 20:02:56 +02:00
page_title: "Two-Tier AWS Architecture"
2014-07-28 19:43:00 +02:00
sidebar_current: "examples-aws"
2014-10-22 05:21:56 +02:00
description: |-
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.
2014-07-28 19:43:00 +02:00
---
2017-04-06 20:02:56 +02:00
# Two-Tier AWS Architecture
2014-07-28 19:43:00 +02:00
[**Example Source Code**](https://github.com/hashicorp/terraform/tree/master/examples/aws-two-tier)
2014-07-28 19:43:00 +02:00
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
2014-07-28 19:43:00 +02:00
an ELB serving traffic.
To simplify the example, it intentionally ignores deploying and
2014-07-28 19:43:00 +02:00
getting your application onto the servers. However, you could do so either via
[provisioners](/docs/provisioners/index.html) and a configuration
management tool, or by pre-baking configured AMIs with
[Packer](https://www.packer.io).
2014-07-28 19:43:00 +02:00
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.
2014-07-28 19:43:00 +02:00
As with all the examples, just copy and paste the example and run
2014-10-13 21:14:56 +02:00
`terraform apply` to see it work.