deploy

Deploy a new stack or update an existing stack

Usage: stackery deploy --stack-name=<stack> --env-name=<environment> --git-ref=<ref> [flags]

Required Parameters
  1. stack-name The name of the stack you want to deploy.
  2. env-name The name of the Environment you want the stack to deploy to.
  3. git-ref A branch name, tag, or commit SHA, etc.
    • Note: Deployments are generated from the stack’s remote git repository. Be sure to push any local changes to the remote repository before deploying!
Options
  • --aws-profile <profileName> Specify the AWS profile to use from your AWS Credentials File. If not provided, you will be prompted to provide your profile or credentials.
  • --access-key-id <awsAccessKeyID> Provide your AWS Access Key ID directly via the command line rather than using an AWS profile. If set, --secret-access-key must also be provided
  • --secret-access-key <awsSecretAccessKey> Provide your AWS Secret Access KEy directly via the command line rather than using an AWS profile. If set, --access-key-id must also be provided
  • -e, --env-name <string> The environment name
  • --execute-changeset <string> CloudFormation Template ChangeSet Arn
  • -r, --git-ref <string> The repository commit reference
  • -h, --help help for deploy
  • --prepare-only Prepare a deployment in your AWS account without executing the generated CloudFormation template.
  • --session-token <string> AWS session token
  • -n, --stack-name <string> The stack name
Options inherited from parent commands
  • --non-interactive Skip user inputs
Examples
$ stackery deploy --stack-name=myStackName --env-name=myEnvironmentName --git-ref=myGitRef --aws-profile myProfileName

This command will deploy the myGitRef version of stack myStackName to your myEnvironmentName environment. Execution of the CloudFormation change set will be triggered using local aws credentials stored in the standard ~/.aws/credentials file.

Search results

To Top