github.com/wikibal01/hashicorp-terraform@v0.11.12-beta1/website/intro/examples/aws.html.markdown (about)

     1  ---
     2  layout: "intro"
     3  page_title: "Two-Tier AWS Architecture"
     4  sidebar_current: "examples-aws"
     5  description: |-
     6    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.
     7  ---
     8  
     9  # Two-Tier AWS Architecture
    10  
    11  [**Example Source Code**](https://github.com/terraform-providers/terraform-provider-aws/tree/master/examples/two-tier)
    12  
    13  This provides a template for running a simple two-tier architecture on Amazon
    14  Web Services. The premise is that you have stateless app servers running behind
    15  an ELB serving traffic.
    16  
    17  To simplify the example, it intentionally ignores deploying and
    18  getting your application onto the servers. However, you could do so either via
    19  [provisioners](/docs/provisioners/index.html) and a configuration
    20  management tool, or by pre-baking configured AMIs with
    21  [Packer](https://www.packer.io).
    22  
    23  After you run `terraform apply` on this configuration, it will
    24  automatically output the DNS address of the ELB. After your instance
    25  registers, this should respond with the default Nginx web page.
    26  
    27  As with all the examples, just copy and paste the example and run
    28  `terraform apply` to see it work.