1. stackctl-capture(1)
  2. stackctl-capture(1)

NAME

stackctl-capture - Generate stack specifications from deployed stacks

SYNOPSIS

stackctl capture [options] STACK

DESCRIPTION

Fetches the CloudFormation Template and currently supplied Parameters of a deployed Stack and stores it as a stack specification under the currently-authorized AWS Account and Region.

If files already exist at the inferred locations, they will be overwritten.

OPTIONS

-n, --account-name=NAME
Write specs paths to stacks/{account-id}.NAME/.... If not given, we will use ${AWS_PROFILE:-unknown}.
-t, --template-path=PATH
Relative path for template. Default is ${STACK}.yaml.
-p, --path=PATH
Relative path for specification. Default is ${STACK}.yaml.
--no-flip
Don't flip JSON templates to Yaml. This option is ignored if the template is not JSON.
STACK
Name of Stack to capture.

Globs are also supported and all matching Stacks will be captured. When there are multiple Stacks being captured, the --path and --template-path will be ignored and all Stacks will be captured to their inferred paths.

ENVIRONMENT

AWS_PROFILE
If set, will be used when defaulting -n.
  1. Freckle Engineering
  2. May 2024
  3. stackctl-capture(1)