Configure environment prerequisites, initialize new Python-based CDK projects, manage dependencies, and deploy infrastructure to AWS.
- GitHub stars
- 41,038
- Files
- 1
- Last commit
- Nov 11, 2026
- License
- MIT
- Allowed tools
- —
What does the aws-cdk-python-setup skill do?
aws-cdk-python-setup is an agent skill. Configure environment prerequisites, initialize new Python-based CDK projects, manage dependencies, and deploy infrastructure to AWS.
Summary generated from the skill's SKILL.md.
About the aws-cdk-python-setup skill
Setting up Python-based AWS Cloud Development Kit environments is the primary function of this skill. It assists developers in preparing their local machines by verifying necessary tools like Node.js, Python, AWS CLI, and Git. Once the environment is ready, the skill guides the creation of new CDK projects, the initialization of Python virtual environments, and the installation of core libraries such as aws-cdk-lib and constructs.
An agent should load this skill when a user needs to move from a blank terminal to a functional infrastructure-as-code project. It produces structured project files including app.py, cdk.json, and requirements.txt. The workflow covers the entire lifecycle from running cdk init to synthesizing CloudFormation templates with cdk synth and finally executing cdk deploy to push stacks to an AWS account. It also handles the initial cdk bootstrap process required for asset storage in S3 buckets.
What an agent can do with it
- 1Initialize a new CDK projectCreate a new directory and set up a Python-based AWS CDK application structure.
- 2Preview infrastructure changesCompare the current local code against the deployed stack before applying updates.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the aws-cdk-python-setup skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the aws-cdk-python-setup skill in Claude Code
~/.claude/skills/aws-cdk-python-setup/SKILL.md
$ npx degit github/awesome-copilot/skills/aws-cdk-python-setup ~/.claude/skills/aws-cdk-python-setupInstall the aws-cdk-python-setup skill in Claude Code (project)
.claude/skills/aws-cdk-python-setup/SKILL.md
$ npx degit github/awesome-copilot/skills/aws-cdk-python-setup .claude/skills/aws-cdk-python-setupInstall the aws-cdk-python-setup skill in Codex
~/.agents/skills/aws-cdk-python-setup/SKILL.md
$ npx degit github/awesome-copilot/skills/aws-cdk-python-setup ~/.agents/skills/aws-cdk-python-setupInstall the aws-cdk-python-setup skill in Gemini CLI
~/.gemini/skills/aws-cdk-python-setup/SKILL.md
$ npx degit github/awesome-copilot/skills/aws-cdk-python-setup ~/.gemini/skills/aws-cdk-python-setupInstall the aws-cdk-python-setup skill in Claude.ai
npx degit github/awesome-copilot/skills/aws-cdk-python-setup aws-cdk-python-setup && zip -r aws-cdk-python-setup.zip aws-cdk-python-setup # claude.ai → Customize → Skills → + → Create skill → Upload a skill → aws-cdk-python-setup.zip
Automated checks
Ran Nov 13, 2026Full report →Passed our automated checks. That is not a security audit: read the scripts before you let an agent run them. How checks work
- Source repository linked and reachablegithub/awesome-copilot/skills/aws-cdk-python-setup is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/aws-cdk-p ↗Pass
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗Pass
- No download-and-run or credential theft in scriptsNo scripts in the skill folderPass
- No hidden instructions in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/aws-cdk-p ↗Pass
- Pre-approved tools are scopedNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/aws-cdk-p ↗Pass
SKILL.md
View on GitHubAWS 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 pointmy_cdk_project/— CDK stack definitionsrequirements.txt— Python dependenciescdk.json— Configuration file
4. Set Up Python Virtual Environment
# macOS/Linux
source .venv/bin/activate
# Windows
.venv\Scripts\activate
5. Install Python Dependencies
pip install -r requirements.txt
Primary dependencies:
aws-cdk-lib— Core CDK constructsconstructs— Base construct library
Development Workflow
Synthesize CloudFormation Templates
cdk synth
Generates cdk.out/ containing CloudFormation templates.
Deploy Stacks to AWS
cdk deploy
Reviews and confirms deployment to the configured AWS account.
Bootstrap (First Deployment Only)
cdk bootstrap
Prepares environment resources like S3 buckets for asset storage.
Best Practices
- Always activate the virtual environment before working.
- Run
cdk diffbefore deployment to preview changes. - Use development accounts for testing.
- Follow Pythonic naming and directory conventions.
- Keep
requirements.txtpinned 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 doctorto diagnose environment issues.
Files in this skill
1aws-cdk-python-setup skill questions
How do I install the aws-cdk-python-setup skill in Claude Code?
Run npx degit github/awesome-copilot/skills/aws-cdk-python-setup ~/.claude/skills/aws-cdk-python-setup. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the aws-cdk-python-setup skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
What are the minimum version requirements for AWS CDK Python development?
You need Node.js version 14.15.0 or higher and Python version 3.7 or higher.
How do I prepare my AWS environment for the first deployment?
You must run the bootstrap command to prepare resources like S3 buckets for asset storage.
How can I preview changes before deploying them to AWS?
You should use the cdk diff command to preview changes before proceeding with deployment.
What command can I use to diagnose environment issues?
You can run cdk doctor to help diagnose issues within your environment.