This script will pull down an S3 remote configuration before running any terraform actions. Assumes the following structure: ``` main.tf terraform.cfg vars/dev vars/staging vars/production ``` `ansible.cfg` is required for the remote configuration. You can use it like so: ``` ./terraform-env.sh dev show ./terraform-env.sh staging plan -out plan ./terraform-env.sh production apply -var="some_var=some_value" ``` You can use the script just like you'd use `terraform`, passing whatever arguments you would before. It will only pull the latest environment if the current environment is different from the one you're requesting.