cdk-patterns

Provide AWS CDK design patterns for TypeScript infrastructure code.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/engineers-hub-ltd-in-house-project/eh-skills --skill cdk-patterns-engineers-hub-ltd-in-house-project
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cdk-patterns
Source: https://github.com/engineers-hub-ltd-in-house-project/eh-skills/tree/main/skills/iac/cdk-patterns
Command: npx skills add https://github.com/engineers-hub-ltd-in-house-project/eh-skills --skill cdk-patterns-engineers-hub-ltd-in-house-project

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the complexities of designing, implementing, and managing AWS infrastructure using the AWS Cloud Development Kit (CDK), enabling developers to code their infrastructure efficiently and reliably.

Core Features & Use Cases

  • Construct Design: Learn best practices for L1, L2, and L3 construct usage and custom construct creation.
  • Stack Management: Understand principles for effective stack splitting and cross-stack referencing.
  • CDK Pipelines: Implement CI/CD for your infrastructure using CDK Pipelines.
  • Use Case: When building a new microservice on AWS, use this Skill to define your networking, database, and application stacks using reusable CDK constructs and ensure proper environment configuration.

Quick Start

Use the cdk-patterns skill to generate a secure S3 bucket construct in TypeScript.

Frequently Asked Questions about cdk-patterns

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

FAQPage Schema
How do I structure AWS CDK constructs in TypeScript for infrastructure as code?

You structure AWS CDK constructs by differentiating between L1, L2, and L3 abstraction levels, enabling reusable infrastructure as code components for your application stacks. Custom constructs encapsulate specific logic for broader reuse.

What is the best way to split AWS CDK stacks for microservices?

The best way to split AWS CDK stacks is by applying stack partitioning principles and cross-stack referencing. This ensures effective environment configuration and logical separation of networking, database, and application layers.

How do I set up CDK Pipelines for CI/CD infrastructure deployment?

You set up CDK Pipelines by defining continuous integration and delivery workflows directly within your AWS CDK TypeScript application, automating reliable cloud infrastructure provisioning through code-driven deployment stages.

Can I use AWS CDK with TypeScript to generate a secure S3 bucket construct?

Yes, you can use AWS CDK with TypeScript to generate a secure S3 bucket construct by leveraging custom construct design patterns. This approach encapsulates security configurations for reusable infrastructure deployment.

When do I need to create custom L3 constructs in AWS CDK?

You need to create custom L3 constructs in AWS CDK when standard L1 and L2 constructs lack the specific configuration logic required for your microservice. This enables standardized, reusable infrastructure components across teams.