Merge branch 'master' of github.com:Spengreb/atmos
This commit is contained in:
commit
b9d3f5ca56
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
[](https://circleci.com/gh/Spengreb/atmos)
|
||||
[](https://cloud.drone.io/Spengreb/atmos)
|
||||
|
||||
# Terraform Atmosphere
|
||||
# Terraform Atmosphere :earth_africa:
|
||||
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. Atmos will automatically switch workspaces per git branches if it discovers its in a git repository
|
||||
|
||||
# Quick Start
|
||||
|
|
|
|||
2
atmos.py
2
atmos.py
|
|
@ -23,7 +23,7 @@ def determine_actions(args, params):
|
|||
for param in params: # Pass terraform params directly through
|
||||
cmd = cmd + ' ' + param
|
||||
|
||||
if (args.command in env_actions) and (workspace != "default"): # Append with env context
|
||||
if (args.command in env_actions): # Append with env context
|
||||
cmd = cmd + ' -var-file=vars/{env}.tfvars -var "workspace={env}"'.format(env=workspace)
|
||||
|
||||
if (args.e):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue