github avatar

Aws Cdk Python Setup

This walks you through the complete setup for AWS CDK with Python, from installing the CLI via npm to bootstrapping your first deployment. It covers the essentials: configuring AWS credentials, spinning up a new project with `cdk init`, managing the virtual environment, and the core commands like synth and deploy. The guide assumes you're starting fresh and need the prerequisite check (Node.js, Python, AWS CLI). Honestly, it's solid for first-timers who want a linear path from zero to deployed stack, though experienced CDK users will already know most of this. The troubleshooting section is brief but hits the common gotchas around credentials and versioning.

skills.sh installs
1.7K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill aws-cdk-python-setup --agent claude-code

Installs into .claude/skills of the current project.

Files

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

npm install -g aws-cdk
cdk --version

2. Configure AWS Credentials

# 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

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

# macOS/Linux
source .venv/bin/activate

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
DevOps & CI/CD, Git & Pull Requests, Documentation, AI & Agent Building, Release Management, Python, Cloud & Infrastructure
First seen
Apr 16, 2026

More from github/awesome-copilot

All 318
1lingzhi227 avatarpaper-compilationlingzhi227/agent-research-skillsCompile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation. Runs the full pdflatex + bibtex pipeline. 1.7Kskills.sh installs
2adobe avatarblock-inventoryadobe/skillsUse this when the page-import pipeline needs to survey the block palette available from a local AEM Edge Delivery Services project and the Block Collection to i1.6Kskills.sh installs
3aahl avatarhass-builderaahl/skillsA skill to build and manage Home Assistant configurations. Use when using the Home Assistant Builder (`hab`) CLI to inspect, create, update, delete, operate, or1.6Kskills.sh installs
4refoundai avatarproduct-taste-intuitionrefoundai/lenny-skillsHelp users develop product taste and intuition. Use when someone wants to improve their product judgment, struggles to evaluate design quality, needs to make de1.6Kskills.sh installs
5lingzhi227 avatarpaper-to-codelingzhi227/agent-research-skillsConvert an ML research paper into a complete, runnable code repository. 3-stage pipeline from Paper2Code — Planning (UML + dependency graph) → Analysis (per-fil1.6Kskills.sh installs
6astronomer avatarmanaging-astro-local-envastronomer/agentsManage local Airflow environment with Astro CLI (Docker and standalone modes). Use when the user wants to start, stop, or restart Airflow, view logs, query the 1.6Kskills.sh installs