Atmos is a thin wrapper for managing Terraform Workspaces easily. Using the workspace name it will select the correct .tfvar file, defaulting to a qa var file for any other workspace. This is primarily for pipelines but works just as well from the command line. It can process all terraform commands and parameters passing them on directly.
The vars directory is scanned by atmos and matches the current workspace to the vars file. If the workspace is not found it defaults to the qa environment. This is to ensure qa branches are deployed similarily without having to create a var file for each new branch.
This will make Terraform lookup AWS credentials from the `~/.aws/credentials` file using the workspace name as the stanza name. For example the credentials file would look like the shared-creds file in this repo.
Adding the `-e` flag to atmos will make it generate a new `~/.aws/credentials` file from environment variables. You must first include the `default` access key ID & secret access key like this:
All additional workspaces need to be prefixed in the same way:
```
DEV_ACCESS_KEY_ID=id
DEV_SECRET_ACCESS_KEY=key
QA_ACCESS_KEY_ID=id
QA_SECRET_ACCESS_KEY=key
```
Note: Atmos will override your default credentials file as this functionality is for use in a docker container or in situations where you would rather use variables.