github cloudposse/atmos v1.4.18

latest releases: v1.83.1, v1, v1.83.0...
2 years ago

what

  • Update atmos workflow command

why

  • Allow specifying the stack for workflows on the command line
  • The stack defined on the command line (atmos workflow <name> -f <file> -s <stack>) has the highest priority, it overrides all other stacks attributes
  terraform-plan-all-test-components:
    description: |
      Run 'terraform plan' on 'test/test-component' and all its derived components.
      The stack must be provided on the command line: atmos workflow terraform-plan-all-test-components -f workflow1 -s <stack>
    steps:
      - command: terraform plan test/test-component
      - command: terraform plan test/test-component-override
      - command: terraform plan test/test-component-override-2
      - command: terraform plan test/test-component-override-3

test

atmos workflow terraform-plan-all-test-components -f workflow1 -s tenant1-ue2-dev
Executing the workflow 'terraform-plan-all-test-components' from 'examples/complete/workflows/workflow1.yaml'


description: |
  Run 'terraform plan' on 'test/test-component' and all its derived components.
  The stack must be provided on the command line: atmos workflow terraform-plan-all-test-components -f workflow1 -s <stack>
steps:
- command: terraform plan test/test-component
  stack: ""
  type: ""
- command: terraform plan test/test-component-override
  stack: ""
  type: ""
- command: terraform plan test/test-component-override-2
  stack: ""
  type: ""
- command: terraform plan test/test-component-override-3
  stack: ""
  type: ""
stack: ""

Executing workflow step: terraform plan test/test-component
Stack: tenant1-ue2-dev

Executing command:
atmos terraform plan test/test-component -s tenant1-ue2-dev

Variables for the component 'test/test-component' in the stack 'tenant1-ue2-dev':

Don't miss a new atmos release

NewReleases is sending notifications on new releases.