Stacktape

Sign up



codebuildDeploy()

Overview and basic usage


Deploys the stack (specified stage of your project) to AWS using AWS Codebuild.


  • Codebuild deployment is executed on provisioned resources directly within your AWS account.
  • Executing deployment using codebuild offloads your local resources.
  • Overview of the process:
    1. Project is zipped and uploaded to bucket in your account.
    2. Codebuild build environment (dedicated VM) is provisioned.
    3. Deployment is started.
    4. Deployment is monitored and logs are continuously printed to the terminal
  • If the stack doesn't exist, creates a new one. If the stack already exists, updates it.
  • Requires a valid stacktape configuration file in the current working directory or configuring a path to the config file using --configPath option.

Copy

import { Stacktape } from "stacktape";
const stacktape = new Stacktape();
stacktape.codebuildDeploy({
region: "<<region>>",
stage: "<<stage>>"
});

API reference

Arguments

region
Required
stage
Required
awsAccount
config
configPath
currentWorkingDirectory
disableAutoRollback
disableDriftDetection
dockerArgs
hotSwap
noCache
preserveTempFiles
profile
projectName
templateId

Need help? Ask a question on Discord or info@stacktape.com.