You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/examples/aws-two-tier
Paul Hinze 61c6817df6
Update README.md
11 years ago
..
README.md Update README.md 11 years ago
main.tf examples: add egress rule to aws-two-tier SG 11 years ago
outputs.tf examples directory start 12 years ago
variables.tf examples directory start 12 years ago

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.

To run, configure your AWS provider as described in

https://www.terraform.io/docs/providers/aws/index.html

Run with a command like this:

terraform apply -var 'key_name={your_aws_key_name}' \
   -var 'key_path={location_of_your_key_in_your_local_machine}'` 

For example:

terraform apply -var 'key_name=terraform' -var 'key_path=/Users/jsmith/.ssh/terraform.pem'