targets undeploy

Undeploy infrastructure configured with config sets from the specified deployment targets.

Usage

tkm targets undeploy [group-path...] \
[--config-file <config-file-name>] \
[--target <target>]...

Positional arguments

OptionRequiredDescription
group-pathno
You can pass one or more deployment group paths to undeploy only the targets that belong to deployment groups located under the given paths in the deployment groups hierarchy.

Options

OptionRequiredDescription
--targetno
Choose targets to undeploy. You can use this option multiple times to specify more targets.
--config-fileno
Load deployment configuration from this file.

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

Undeploy all deployment targets:

tkm targets undeploy

Undeploy only targets that belong to a deployment group MyGroup or to any other deployment group under it:

tkm targets undeploy MyGroup

Undeploy only the deployment target named my-target:

tkm targets undeploy --target my-target