Michael Delzer Updated by Michael Delzer

Deploy stack


Deploy stack instance by supplying a fully populated Hub Manifest.

hub deploy hub.yaml.elaborate [flags]


  -b, --base-dir string                   Path to component sources base directory (default to manifest dir)
-c, --components string A list of components to deploy (separated by comma; state file must exist)
-y, --dry Invoke deploy-test verb instead of deploy
-e, --environment string Set environment overrides: -e 'NAME=demo,INSTANCE=r4.large,...'
--git-outputs Produce hub.components.<component-name>.git.* outputs (default true)
--git-outputs-status Produce hub.components.<component-name>.git.clean = {clean, dirty} which is expensive to calculate
-h, --help help for deploy
--hub-application string The Id or Domain of Control Plane Application to obtain deployment parameters from
--hub-environment string The Id or Name of Control Plane Environment to obtain deployment parameters from
--hub-save-stack-instance-outputs Send Stack Instance outputs and provides to Control Plane (--hub-stack-instance must be set)
--hub-stack-instance string The Id or Domain of Control Plane Stack Instance to obtain deployment parameters from
-l, --limit string Component to stop deploy at
-g, --load-global-state Load global (final) state instead of the specific component (applies to -c, -o)
-n, --no-state Skip state file load
-o, --offset string Component to start deploy with (state file must exist)
--os-environment string OS environment mode for child process, one of: everything, no-tfvars, strict (default "no-tfvars")
--pipe Pipe sub-commands output to console in real-time (default true)
-s, --state string Path to state file(s), for example hub.yaml.state,s3://bucket/hub.yaml.state (default "hub.yaml.state")
--strict-parameters Put only hub-component.yaml declared parameters into component scope (default true)
--switch-kube-context Switch current Kubeconfig context to new context. Use kubectl instead

Options inherited from parent commands

      --all-warnings                   Repeat all warnings before [successful] exit (default true)
--api string Hub API service base URL, HUB_API (default "")
--aws_profile string AWS ~/.aws/credentials profile, AWS_PROFILE (default "agilestacks")
--aws_region string AWS region hint (for S3 state access), AWS_DEFAULT_REGION (default "us-east-2")
--aws_use_iam_role_credentials Try EC2 instance credentials (default true)
--cache string API cache file (default is $HOME/.automation-hub-cache.yaml)
--compressed Write gzip compressed files (default true)
--config string Config file (default is $HOME/.automation-hub.{yaml,json})
-d, --debug Print debug info. Or set HUB_DEBUG=1
--encrypted string Write encrypted files if HUB_CRYPTO_PASSWORD is set. true / false (default "if-password-set")
-f, --force Force operation despite of errors. Or set HUB_FORCE=1
--log-destination string stderr or stdout (default "stderr")
-t, --trace Print detailed trace info. Or set HUB_TRACE=1
-v, --verbose Verbose mode (default true)


Automation Hub is a lifecycle and stack composition tool, hub Click Here

How did we do?