Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Basic Example

This is the simplest possible cdkd deployment example. It demonstrates:

  • Creating a single S3 bucket
  • Using Cloud Control API for resource provisioning
  • Basic stack outputs

Resources

  • AWS::S3::Bucket: A simple S3 bucket with destroy removal policy

Deploy

# Set environment variables
export STATE_BUCKET="your-cdkd-state-bucket"
export AWS_REGION="us-east-1"

# Bootstrap (first time only)
node ../../../dist/cli.js bootstrap \
  --state-bucket ${STATE_BUCKET} \
  --region ${AWS_REGION}

# Deploy
node ../../../dist/cli.js deploy \
  --app "node bin/app.ts" \
  --state-bucket ${STATE_BUCKET} \
  --region ${AWS_REGION} \
  --verbose

Clean up

node ../../../dist/cli.js destroy \
  --state-bucket ${STATE_BUCKET} \
  --stack CdkdBasicExample \
  --region ${AWS_REGION} \
  --force