Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aws-samples avatar

Deploy Cdk Stack

  • 1 installs
  • 84 repo stars
  • Updated August 4, 2026
  • aws-samples/review-and-assessment-powered-by-intelligent-documentation

Deploy CDK Stack is a Claude Code skill that deploys the RAPID application's AWS infrastructure via CDK with database migrations and verification.

About

Deploy CDK Stack deploys the RAPID application's AWS infrastructure using CDK, including first-time bootstrap, database migrations, and post-deployment verification. It documents deployment scenarios (code-only, infra-only, schema change, full stack), parameter customization via parameter.ts and command-line overrides, and how to retrieve frontend and API URLs from CloudFormation outputs. A developer uses it only when explicitly asked to deploy. It includes production guardrails and success criteria such as the stack reaching CREATE_COMPLETE and the health endpoint returning 200.

  • Deploys RAPID AWS infrastructure with CDK, including first-time bootstrap and database migrations
  • Documents parameter customization (parameter.ts, command-line -c overrides) and precedence
  • Only executes when the user explicitly says 'please deploy'; lists production never/always guardrails

Deploy Cdk Stack by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #1,172 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

deploy-cdk-stack capabilities & compatibility

Capabilities
cdk deploy · database migration · infra provisioning
Works with
aws · docker
Use cases
devops · ci cd · database
Pricing
Free
From the docs

What deploy-cdk-stack says it does

**Only execute when explicitly asked to "please deploy".**
SKILL.md
**NEVER in production**: Database reset, `cdk destroy`, `prisma db push`, `autoMigrate: true`
SKILL.md
npx skills add https://github.com/aws-samples/review-and-assessment-powered-by-intelligent-documentation --skill deploy-cdk-stack

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars84
Last updatedAugust 4, 2026
Repositoryaws-samples/review-and-assessment-powered-by-intelligent-documentation

What it does

Deploy the RAPID CDK stack to AWS, run database migrations, and verify the stack reaches CREATE/UPDATE_COMPLETE.

Who is it for?

RAPID developers deploying AWS infrastructure with CDK and running database migrations.

Skip if: Building or formatting code (use build-and-format); it runs only on an explicit deploy request.

When should I use this skill?

The user explicitly says 'please deploy', runs first-time bootstrap, or deploys after code or infra changes.

What you get

The RAPID CDK stack deployed to CREATE/UPDATE_COMPLETE with migrations run and health endpoint returning 200.

  • Deployed CloudFormation stack
  • Database migration completed
  • Frontend and API URLs from stack outputs

By the numbers

  • Four deployment scenarios (code, infra, schema, full stack)
  • Production never-list: reset, cdk destroy, prisma db push, autoMigrate:true

Files

SKILL.mdMarkdownGitHub ↗

Deploy CDK Stack

Only execute when explicitly asked to "please deploy".

Prerequisites

aws sts get-caller-identity    # AWS credentials configured
docker ps                      # Docker running
cd backend && npm ci && npm run prisma:generate && npm run build  # Backend built
cd ../cdk && npm ci            # CDK dependencies installed

Deployment Sequence

Quick Deploy (Recommended)

cd cdk
npm run deploy

Full Deployment (Manual Steps)

cd backend && npm ci && npm run prisma:generate && npm run build
cd ../cdk && npm ci
npx cdk synth                              # Validate (optional)
npx cdk deploy --require-approval never --all

First-Time Deployment

cd cdk
npx cdk bootstrap
npx cdk deploy --require-approval never --all

Parameter Customization

Edit parameter.ts

// cdk/lib/parameter.ts
export const parameters = {
  allowedIpV4AddressRanges: ["192.168.0.0/16"],
  bedrockRegion: "ap-northeast-1",
  documentProcessingModelId: "apac.anthropic.claude-sonnet-4-20250514-v1:0",
  cognitoSelfSignUpEnabled: false,
  autoMigrate: false,
};

Command Line Parameters

npx cdk deploy -c rapid.bedrockRegion="ap-northeast-1"
npx cdk deploy -c rapid='{"bedrockRegion":"us-west-2","documentProcessingModelId":"us.anthropic.claude-sonnet-4-20250514-v1:0"}'

Precedence: Command line > parameter.ts > parameter-schema.ts defaults

Deployment Scenarios

ScenarioCommands
Code onlycd backend && npm run build && cd ../cdk && npx cdk deploy
Infra onlycd cdk && npx cdk deploy
Schema changeDeploy + run migration command (see below)
Full stackBuild all + npx cdk deploy --require-approval never --all

Post-Deployment

# Get URLs
aws cloudformation describe-stacks --stack-name RapidStack \
  --query "Stacks[0].Outputs[?OutputKey=='FrontendURL'].OutputValue" --output text

aws cloudformation describe-stacks --stack-name RapidStack \
  --query "Stacks[0].Outputs[?OutputKey=='ApiEndpoint'].OutputValue" --output text

Database Migration

Manual Migration

MIGRATION_COMMAND=$(aws cloudformation describe-stacks \
  --stack-name RapidStack \
  --query "Stacks[0].Outputs[?OutputKey=='DeployMigrationCommand'].OutputValue" \
  --output text)
eval $MIGRATION_COMMAND

CDK Commands

CommandDescription
npx cdk synthValidate and synthesize templates
npx cdk diffShow changes vs deployed stack
npx cdk deploy --require-approval neverDeploy without prompts
npx cdk deploy --allDeploy all stacks
npx cdk bootstrapBootstrap CDK (first-time only)

Production Warnings

NEVER in production: Database reset, cdk destroy, prisma db push, autoMigrate: true

ALWAYS in production: Test in staging first, review changeset, backup DB before migrations, monitor CloudWatch logs.

Success Criteria

  • CloudFormation stack shows CREATE_COMPLETE or UPDATE_COMPLETE
  • API health endpoint responds with 200 OK
  • CloudFront URL loads application
  • CloudWatch logs show no critical errors
  • Database migration completed (if applicable)

Related skills

FAQ

When does this skill run?

Only when the user explicitly says 'please deploy'.

What is the parameter precedence?

Command line > parameter.ts > parameter-schema.ts defaults.

DevOps & CI/CDdeployinframonitoring

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.