cdk-scripting

Guides writing AWS CDK infrastructure code in TypeScript with cdk-nag security validation.

2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/amdmax/claude_marketplace --skill cdk-scripting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cdk-scripting
Source: https://github.com/amdmax/claude_marketplace/tree/main/.claude/skills/aws%3Acdk
Command: npx skills add https://github.com/amdmax/claude_marketplace --skill cdk-scripting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for writing AWS Cloud Development Kit (CDK) infrastructure code, ensuring security, reliability, and cost-efficiency.

Core Features & Use Cases

  • Resource Management: Differentiates between importing stateful resources and creating stateless ones.
  • Security Validation: Integrates cdk-nag for automated security compliance checks.
  • Testing & Deployment: Covers unit testing, CI/CD integration, and safe deployment patterns.
  • Use Case: Scaffold secure and scalable AWS infrastructure using TypeScript, following proven patterns for resource management, security, and cost optimization.

Quick Start

Follow the CDK scripting assistant's guidance to write secure and efficient AWS infrastructure code.

Frequently Asked Questions about cdk-scripting

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

FAQPage Schema
How do I manage stateful vs stateless resources in AWS CDK?

AWS CDK resource management differentiates stateful resources by importing existing ones to preserve data, while stateless resources are created directly. This pattern prevents accidental data deletion and ensures reliable infrastructure updates.

How do I add automated security compliance checks to AWS CDK?

You can integrate cdk-nag into your AWS CDK pipeline to perform automated security and compliance validation. This ensures your infrastructure code meets best practices before deployment.

What is the best way to handle cross-cutting concerns in AWS CDK?

AWS CDK Aspects allow you to apply cross-cutting concerns across your infrastructure stack programmatically. This enables consistent policy enforcement and resource tagging without duplicating code.

Can I use dynamic references and Lambda@Edge with AWS CDK in TypeScript?

Yes, AWS CDK supports defining dynamic references for secure runtime values and deploying Lambda@Edge functions using TypeScript. These patterns ensure secure and globally distributed infrastructure deployments.

What are the limitations of importing stateful resources in AWS CDK?

Importing stateful resources in AWS CDK requires careful handling because it bypasses standard resource creation and updates. You must ensure existing resource configurations match your CDK expectations to avoid drift.

Do I need TypeScript to write AWS CDK infrastructure code?

TypeScript is the recommended language for writing AWS CDK infrastructure code due to its strong typing and ecosystem support. Following TypeScript best practices ensures secure, reliable, and cost-efficient infrastructure scaffolding.