aws-cdk-development

Build and validate AWS infrastructure as code using CDK constructs and stacks.

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/farslab/claude-skills --skill aws-cdk-development-farslab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aws-cdk-development
Source: https://github.com/farslab/claude-skills/tree/main/aws-cdk-development
Command: npx skills add https://github.com/farslab/claude-skills --skill aws-cdk-development-farslab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aws-cdk, cdk-nag, jq, and includes scripts (resource) and references (resource) components.

What problem does it solve? Writing AWS infrastructure by hand in CloudFormation templates is verbose and error-prone, and misconfigured CDK stacks can fail deployment or violate security best practices. This Skill guides you through building CDK applications correctly, with integrated validation and up-to-date AWS documentation access. ## Core Features & Use Cases - CDK Construct Guidance: Implement stacks and constructs in TypeScript or Python following best practices like automatic resource naming, least-privilege IAM grants, and L2/L3 construct patterns. - Multi-Layer Validation: Run cdk-nag synthesis-time checks plus the included validate-stack.sh script to verify template size, resource counts, and synthesis success before deployment. - MCP Server Integration: Query AWS Documentation and CDK MCP servers to verify service availability, regional support, and current API specifications beyond the model's knowledge cutoff. - Use Case: You need to deploy a serverless API with Lambda and DynamoDB. The Skill helps you define a NodejsFunction with automatic bundling, grant least-privilege table access, validate the stack with cdk-nag, and synthesize the CloudFormation template for deployment. ## Quick Start Ask the assistant to create a CDK stack with a Lambda function and DynamoDB table following AWS best practices.

Frequently Asked Questions about aws-cdk-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a CDK stack with Lambda and DynamoDB?▼

Define a NodejsFunction or PythonFunction construct with an entry point, then create a DynamoDB table and connect them using table.grantReadWriteData(lambda). Pass the table name via environment variables rather than hardcoding it in your handler code.

How to validate CDK stacks before deployment?▼

Use cdk-nag as a synthesis-time check by adding AwsSolutionsChecks as an Aspect to your CDK app, then run cdk synth. The included validate-stack.sh script adds meta-level checks for template size, resource counts, and synthesis success.

Should I specify resource names in CDK constructs?▼

No, let CDK generate resource names automatically unless external systems require stable names. Automatic naming enables parallel deployments, stack cloning, and multiple environments in the same account without naming conflicts.

Does CDK support Python Lambda functions with dependencies?▼

Yes, use the PythonFunction construct from @aws-cdk/aws-lambda-python-alpha, which handles dependency packaging and bundling automatically. Point it at your source directory and handler file, and CDK manages the rest.

Why does my CDK deployment fail with naming conflicts?▼

Deployment fails when explicit resource names like functionName or bucketName collide with existing resources in the same region. Remove explicit names and let CloudFormation generate unique identifiers per stack.

What is cdk-nag and when should I use it?▼

cdk-nag is a validation library that checks CDK stacks against AWS best practice rules at synthesis time. Add it to every CDK project for security and compliance feedback, and document legitimate exceptions using NagSuppressions with reasons.