aws-cdk-python-setup
What it does
This guide helps you set up your computer to build cloud projects using AWS CDK with Python. It shows you how to install necessary tools, create a new project, and prepare everything to start developing.
When to use it
- βWhen you want to start building cloud infrastructure with code.
- βIf you already use Python and want to manage AWS resources.
- βWhen following tutorials that ask to set up an AWS CDK environment.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/aws-cdk-python-setup/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow do I set up my computer to create an AWS CDK project in Python?β
5 new skills a week. 1 minute to read.
How it works
It checks if you have the right tools (Node.js, Python, AWS CLI) installed, shows how to install the AWS CDK, configure your AWS credentials, and create a new project with a Python virtual environment.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 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.
FAQ
What is AWS CDK?
AWS CDK is a tool that lets you define your cloud infrastructure (like servers and databases) using programming languages you know, such as Python.
Do I need to know everything about AWS to use this?
No, the CDK simplifies the process. This guide focuses on preparing your environment to start using the CDK.
What is a Python virtual environment?
It's like an isolated box for your Python project, ensuring that the libraries used in it don't interfere with other installations on your computer.
Details
Original description by the author
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment prerequisites, create new CDK projects, manage dependencies, and deploy to AWS.
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7071
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.