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:
- Project is zipped and uploaded to bucket in your account.
- Codebuild build environment (dedicated VM) is provisioned.
- Deployment is started.
- 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