atmos.terraform
The atmos.terraform function runs atmos terraform <command> <component> --stack=<stack> through the current
Atmos executable. Pass the component and stack as strings; Atmos builds the argument list.
Usage
atmos.terraform(
command,
component,
stack,
flags = {},
args = [],
working_directory = ...,
env = ...,
output = "stream",
check = True,
)
The function is also available as atmos.tf, which has the same signature: command, component, and stack can be
positional or keywords (component = "vpc", stack = "dev"), and detailed-exitcode is handled the same way. The
command argument accepts any subcommand of
atmos terraform, including plan,
apply, deploy, and
output.