stacks deploy

Deploy stacks within the given command path. Also stacks outside the command path that are dependencies to the stacks within the command path are deployed. Stacks are sorted in deployment order by stack dependencies so that any given stack is deployed only after its dependencies have been successfully deployed. Stacks are deployed in parallel when possible.

Usage

tkm stacks deploy [command-path] \
[--ignore-dependencies] \
[--interactive|-i]

Positional arguments

OptionRequiredDescription
command-pathno
Deploy stacks within the given command path. Defaults to the root stack group path ("/").

Options

OptionRequiredDescription
--ignore-dependenciesno
Ignore stack dependencies. By default, when a stack is deployed, its dependencies are deployed first, and then the stack itself. In some exceptional cases, you might want to deploy just one stack and skip its dependencies.

Bear in mind that this option is supported only when exactly one stack is deployed. Ignoring dependencies may lead into unexpected results, so you should use this option only in exceptional circumstances.
--interactive
-i
no
Choose the command path using autocompleting search.

Common Options

OptionRequiredDescription
--helpno
Show help.
--yes
-y
no
Automatic yes to prompts; assume "yes" as an answer to all prompts and run non-interactively.
--profile PROFILEno
Use a profile configured in ~/.aws/credentials file.
--log LEVELno
Set logging level. Allowed values are "trace", "debug", "info", "warn", "error". Defaults to "info".
--dir DIR
-d DIR
no
Set the project directory from where Takomo loads configuration.
--load-aws-sdk-configno
Instead of using profiles configured in ~/.aws/credentials, use profiles found from ~/.aws/config.
--var name=VALUEno
Set variable that can be referenced in configuration files. This option can be used multiple times to set multiple variables.
--var-file FILE
--var-file name=FILE
no
Load variables from a file. The variables can be referenced in configuration files. This option can be used multiple times to load variables from multiple files. If NAME is given, variables are loaded to a variable with that name.
--env-file FILEno
Load environment variables from a file. The variables can be referenced in configuration files. This option can be used multiple times to load variables from multiple files.
--log-confidential-infono
Allow printing of environment variables and confidential parameter values that are concealed from the logs by default.
--statsno
Print statistics information of the executed command.

Examples

Deploy all stacks:

tkm stacks deploy

Deploy stacks within the given command path:

tkm stacks deploy /prod

Deploy only /dev/vpc.yml stack and its dependencies:

tkm stacks deploy /dev/vpc.yml

The region part must be specified if the stack has more than one region and you want to deploy it to only one region.

tkm stacks deploy /dev/vpc.yml/eu-west-1

Deploy exactly one stack and skip its dependencies:

tkm stacks deploy /cloudtrail.yml --ignore-dependencies