Simple example showing a deployment of EC2 instance with user data, with variables and outputs.
It also shows how to retrieve output from external workspace hosted by Terraform Enterprise. If you are running this code from your local machine, you will need to set the environment variable ATLAS_TOKEN, with a user token from Terraform Enterprise.
For complete information on the options available, check: https://www.terraform.io/docs/providers/aws/index.html
Or you can simply set the following environment variables:
$ export AWS_ACCESS_KEY_ID="anaccesskey"
$ export AWS_SECRET_ACCESS_KEY="asecretkey"
$ export AWS_DEFAULT_REGION="us-west-2"
This repository is meant to be can be part of a larger AWS workflow example: LINK