Jonathan Rose
07/29/2025, 7:24 PMatmos terraform clean before running any subsequent commands?Andriy Knysh (Cloud Posse)
07/29/2025, 7:26 PMAndriy Knysh (Cloud Posse)
07/29/2025, 7:27 PMatmos terraform apply, and execute atmos terraform clean in the stepsAndriy Knysh (Cloud Posse)
07/29/2025, 7:28 PM# Custom CLI commands
commands:
- name: terraform
description: Execute 'terraform' commands
# subcommands
commands:
- name: apply
description: This command executes 'atmos terraform clean' and 'atmos terraform apply' on terraform components
arguments:
- name: component
description: Name of the component
flags:
- name: stack
shorthand: s
description: Name of the stack
required: true
steps:
- atmos terraform clean {{ .Arguments.component }} -s {{ .Flags.stack }}
- atmos terraform apply {{ .Arguments.component }} -s {{ .Flags.stack }}Dan Hansen
07/29/2025, 8:52 PMAndriy Knysh (Cloud Posse)
07/29/2025, 9:36 PM