Saltar al contenido
Skillpedia
Deploy y nube (DevOps)48 mil · #3852

aws-cdk-development

Qué hace

Te ayuda a crear y gestionar infraestructura en la nube de Amazon Web Services (AWS) con AWS CDK. Ofrece orientación sobre buenas prácticas, como nombrar recursos y configurar funciones Lambda, para que tu infraestructura sea segura y eficiente.

Cuándo usarla

  • ✓Cuando empiezas un proyecto nuevo de infraestructura en AWS con CDK.
  • ✓Cuando necesitas refactorizar o mejorar tu infraestructura existente.
  • ✓Para asegurarte de que tu configuración sigue las buenas prácticas de seguridad y eficiencia.

Link de la skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/aws-cdk-development/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/aws-cdk-development/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Cómo creo una función Lambda en Python con AWS CDK y hago que las dependencias se gestionen automáticamente?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

Esta herramienta usa AWS CDK, que permite definir tu infraestructura como código (en TypeScript o Python). Revisa tus configuraciones con herramientas de validación y ofrece ejemplos para implementar recursos habituales como las funciones Lambda, siguiendo las recomendaciones de AWS.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Bundled upstream support

Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes.

Restored helper safety

scripts/validate-stack.sh runs cdk synth from the caller-selected project root, which executes that project's CDK application and dependencies, can write cdk.out, and may contact AWS context providers if the project requires lookups. Review the project and AWS context before invoking it. The helper does not deploy; deployment needs separate user authorization.

AWS CDK Development

This skill provides comprehensive guidance for developing AWS infrastructure using the Cloud Development Kit (CDK), with integrated MCP servers for accessing latest AWS knowledge and CDK utilities.

AWS Documentation Requirement

Always verify AWS facts using MCP tools (mcp__aws-mcp__* or mcp__*awsdocs*__*) before answering. The aws-mcp-setup dependency is auto-loaded — if MCP tools are unavailable, guide the user through that skill's setup flow.

CDK-Specific MCP Guidance

AWS Labs replaced the dedicated CDK MCP server (awslabs.cdk-mcp-server) with the broader awslabs.aws-iac-mcp-server, which covers CDK alongside CloudFormation and other AWS infrastructure-as-code workflows.

For CDK construct lookups, best-practice recommendations, and pattern guidance, install awslabs.aws-iac-mcp-server. It ships in the deploy-on-aws plugin from awslabs/agent-plugins, or can be registered directly with claude mcp add aws-iac uvx awslabs.aws-iac-mcp-server@latest.

When to reach for it:

  • CDK construct recommendations and API lookups
  • CDK and CloudFormation best-practice patterns
  • Validation of synthesized templates
  • Cross-resource configuration guidance

When to Use This Skill

Use this skill when:

  • Creating new CDK stacks or constructs
  • Refactoring existing CDK infrastructure
  • Implementing Lambda functions within CDK
  • Following AWS CDK best practices
  • Validating CDK stack configurations before deployment
  • Verifying AWS service capabilities and regional availability

Core CDK Principles

Resource Naming

CRITICAL: Do NOT explicitly specify resource names when they are optional in CDK constructs.

Why: CDK-generated names enable:

  • Reusable patterns: Deploy the same construct/pattern multiple times without conflicts
  • Parallel deployments: Multiple stacks can deploy simultaneously in the same region
  • Cleaner shared logic: Patterns and shared code can be initialized multiple times without name collision
  • Stack isolation: Each stack gets uniquely identified resources automatically

Pattern: Let CDK generate unique names automatically using CloudFormation's naming mechanism.

// ❌ BAD - Explicit naming prevents reusability and parallel deployments
new lambda.Function(this, 'MyFunction', {
  functionName: 'my-lambda',  // Avoid this
  // ...
});

// ✅ GOOD - Let CDK generate unique names
new lambda.Function(this, 'MyFunction', {
  // No functionName specified - CDK generates: StackName-MyFunctionXXXXXX
  // ...
});

Security Note: For different environments (dev, staging, prod), follow AWS Security Pillar best practices by using separate AWS accounts rather than relying on resource naming within a single account. Account-level isolation provides stronger security boundaries.

Lambda Function Development

Use the appropriate Lambda construct based on runtime:

TypeScript/JavaScript: Use @aws-cdk/aws-lambda-nodejs

import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';

new NodejsFunction(this, 'MyFunction', {
  entry: 'lambda/handler.ts',
  handler: 'handler',
  // Automatically handles bundling, dependencies, and transpilation
});

Python: Use @aws-cdk/aws-lambda-python

import { PythonFunction } from '@aws-cdk/aws-lambda-python-alpha';

new PythonFunction(this, 'MyFunction', {
  entry: 'lambda',
  index: 'handler.py',
  handler: 'handler',
  // Automatically handles dependencies and packaging
});

Benefits:

  • Automatic bundling and dependency management
  • Transpilation handled automatically
  • No manual packaging required
  • Consistent deployment patterns

Pre-Deployment Validation

Use a multi-layer validation strategy for comprehensive CDK quality checks:

Layer 1: Real-Time IDE Feedback (Recommended)

For TypeScript/JavaScript projects:

…

Preguntas frecuentes

¿Por qué no debería especificar nombres de recursos explícitamente en CDK?

Evitar los nombres explícitos permite que CDK genere nombres únicos de forma automática. Así tu código es más reutilizable, facilita los despliegues en paralelo y evita conflictos de nombres entre distintas partes de tu infraestructura.

¿Cómo gestiona CDK la creación de funciones Lambda?

Para TypeScript o JavaScript se usa `@aws-cdk/aws-lambda-nodejs`. Para Python se usa `@aws-cdk/aws-lambda-python-alpha`. Estas herramientas gestionan automáticamente el empaquetado, las dependencias y la transpilación, lo que simplifica el proceso.

¿Qué es la validación previa al despliegue y por qué es importante?

Es un proceso de comprobación en varias capas para garantizar la calidad de tu infraestructura antes de desplegarla en AWS. Incluye retroalimentación en tiempo real en el IDE, validación durante la síntesis (generación de la plantilla) y una red de seguridad previa al commit (compilación y pruebas).

Detalles

Descripción original del autor

AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python.

repo: sickn33/agentic-awesome-skills

Popularidad

Estrellas en GitHub
48 mil
Posición en el ranking
#3852
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas