|
|
|
|
@ -14,5 +14,15 @@ 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.
|
|
|
|
|
To run, configure your AWS provider as described in
|
|
|
|
|
|
|
|
|
|
https://www.terraform.io/docs/providers/aws/index.html
|
|
|
|
|
|
|
|
|
|
Running the example
|
|
|
|
|
|
|
|
|
|
run `terraform apply -var 'key_name={your_aws_Key_name}' -var 'key_path={location_of_your_key_in_your_local_machine}'`
|
|
|
|
|
|
|
|
|
|
example
|
|
|
|
|
|
|
|
|
|
terraform apply -var 'key_name=terraform' -var 'key_path=/Users/jsmith/.ssh/terraform.pem
|
|
|
|
|
|
|
|
|
|
|