Merge branch 'master' of github.com:Spengreb/atmos

This commit is contained in:
spengreb 2019-06-12 11:58:40 +02:00
commit b9d3f5ca56
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[![CircleCI](https://circleci.com/gh/Spengreb/atmos.svg?style=svg)](https://circleci.com/gh/Spengreb/atmos)
[![Build Status](https://cloud.drone.io/api/badges/Spengreb/atmos/status.svg)](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

View file

@ -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):