
Aws Cdk Python Setup
Bootstrap a Python AWS CDK app with CLI, credentials, venv, and project layout so you can define stacks and deploy from your agent session.
Overview
aws-cdk-python-setup is an agent skill most often used in Build (also Operate) that configures prerequisites and scaffolds Python AWS CDK projects for deploy-ready infrastructure code.
Install
npx skills add https://github.com/github/awesome-copilot --skill aws-cdk-python-setupWhat is this skill?
- Documents four prerequisite tools: Node.js ≥14.15, Python ≥3.7, AWS CLI, and Git
- Global AWS CDK CLI install via npm plus aws configure credential flow
- cdk init app --language python with app.py, stack package, requirements.txt, and cdk.json
- Virtualenv activation paths for macOS/Linux and Windows
- Covers deploy-to-AWS as the end state after project setup
- Node.js ≥ 14.15.0 required for CDK CLI
- Python ≥ 3.7 for CDK application code
- Four listed prerequisites: Node, Python, AWS CLI, Git
Adoption & trust: 1.4k installs on skills.sh; 34.6k GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You want to define AWS infrastructure in Python but keep hitting missing CDK CLI, bad credentials, or an uninitialized project tree.
Who is it for?
Solo builders starting a new AWS-backed API or SaaS who need a copy-paste-safe CDK bootstrap before writing constructs.
Skip if: Teams already on Terraform-only workflows or apps with no AWS footprint who should not adopt CDK just for this checklist.
When should I use this skill?
You need to configure environment prerequisites, create a new Python CDK project, manage dependencies, and deploy to AWS.
What do I get? / Deliverables
You get a initialized Python CDK workspace, activated venv, and configured AWS access so you can author stacks and run cdk deploy next.
- Initialized CDK Python project (app.py, stack package, cdk.json)
- Configured AWS CLI profile
- Activated Python virtual environment
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Canonical shelf is Build because the skill’s core job is scaffolding the CDK codebase and dependencies before any production runbooks. Integrations fits CDK as the AWS control-plane bridge (CLI, IAM, regions) rather than application UI or runtime monitoring.
Where it fits
Spin up cdk init app --language python before adding API Gateway and Lambda constructs.
Verify CDK CLI and credentials immediately prior to the first cdk deploy from CI or laptop.
Recreate a standard CDK repo layout after rotating AWS keys or onboarding a new environment.
How it compares
Setup workflow for AWS CDK Python repos—not a live MCP bridge to AWS APIs.
Common Questions / FAQ
Who is aws-cdk-python-setup for?
Indie and solo developers using Claude Code, Cursor, or Codex who ship on AWS and want agent-guided CDK project initialization in Python.
When should I use aws-cdk-python-setup?
Use it during Build when scaffolding a new stack, before your first cdk deploy in Ship, or in Operate when rebuilding a clean IaC repo after credential or CLI churn.
Is aws-cdk-python-setup safe to install?
It documents shell installs and aws configure, which touch secrets and cloud access—review the Security Audits panel on this page before running commands in production accounts.
SKILL.md
READMESKILL.md - Aws Cdk Python Setup
# AWS CDK Python Setup Instructions This skill provides setup guidance for working with **AWS CDK (Cloud Development Kit)** projects using **Python**. --- ## Prerequisites Before starting, ensure the following tools are installed: - **Node.js** ≥ 14.15.0 — Required for the AWS CDK CLI - **Python** ≥ 3.7 — Used for writing CDK code - **AWS CLI** — Manages credentials and resources - **Git** — Version control and project management --- ## Installation Steps ### 1. Install AWS CDK CLI ```bash npm install -g aws-cdk cdk --version ``` ### 2. Configure AWS Credentials ```bash # Install AWS CLI (if not installed) brew install awscli # Configure credentials aws configure ``` Enter your AWS Access Key, Secret Access Key, default region, and output format when prompted. ### 3. Create a New CDK Project ```bash mkdir my-cdk-project cd my-cdk-project cdk init app --language python ``` Your project will include: - `app.py` — Main application entry point - `my_cdk_project/` — CDK stack definitions - `requirements.txt` — Python dependencies - `cdk.json` — Configuration file ### 4. Set Up Python Virtual Environment ```bash # macOS/Linux source .venv/bin/activate # Windows .venv\Scripts\activate ``` ### 5. Install Python Dependencies ```bash pip install -r requirements.txt ``` Primary dependencies: - `aws-cdk-lib` — Core CDK constructs - `constructs` — Base construct library --- ## Development Workflow ### Synthesize CloudFormation Templates ```bash cdk synth ``` Generates `cdk.out/` containing CloudFormation templates. ### Deploy Stacks to AWS ```bash cdk deploy ``` Reviews and confirms deployment to the configured AWS account. ### Bootstrap (First Deployment Only) ```bash cdk bootstrap ``` Prepares environment resources like S3 buckets for asset storage. --- ## Best Practices - Always activate the virtual environment before working. - Run `cdk diff` before deployment to preview changes. - Use development accounts for testing. - Follow Pythonic naming and directory conventions. - Keep `requirements.txt` pinned for consistent builds. --- ## Troubleshooting Tips If issues occur, check: - AWS credentials are correctly configured. - Default region is set properly. - Node.js and Python versions meet minimum requirements. - Run `cdk doctor` to diagnose environment issues.