aws-cdk-python-setup — GitHub Copilot skill: setup
This skill prepares an AWS CDK project in Python, covering prerequisites, project creation, dependencies, and deployment to AWS.
npx skills add github/awesome-copilot --skill aws-cdk-python-setupWhat aws-cdk-python-setup does
The skill walks through setting up AWS CDK with Python. It covers Node.js 14.15.0 or later for the CDK CLI, Python 3.7 or later, AWS CLI, and Git. It also shows how to install the CLI with npm, configure AWS credentials with aws configure, and create a project using cdk init app --language python.
The generated project includes app.py, the my_cdk_project/ stack directory, requirements.txt, and cdk.json. The workflow includes activating .venv, installing packages with pip install -r requirements.txt, generating CloudFormation templates with cdk synth, reviewing changes with cdk diff, and deploying with cdk deploy. A first deployment uses cdk bootstrap; cdk doctor helps inspect environment issues.
Install it when you are starting a Python CDK project in GitHub Copilot. Skip it when the environment is already configured and you only need stack code.
What it helps with
- prepare a Python environment for AWS CDK
- create a project with
cdk init - set up the virtual environment and dependencies
- review stack changes before deployment
- bootstrap and deploy a CDK stack to AWS
Example prompts for the agent
- Set up AWS CDK for Python and create a project in `my-cdk-project`.
- Activate `.venv`, install `requirements.txt`, and run `cdk synth`.
- Explain the steps before the first `cdk deploy`, including `cdk bootstrap`.
How to install aws-cdk-python-setup
1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill aws-cdk-python-setup2GitHub CLI
gh skill install github/awesome-copilot aws-cdk-python-setup3Manually: put the files in place
.github/skills/aws-cdk-python-setup/SKILL.md1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill aws-cdk-python-setup -a claude-code2Manually: put the files in place
~/.claude/skills/aws-cdk-python-setup/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/aws-cdk-python-setup/
Manually: put the files in place
.agents/skills/aws-cdk-python-setup/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/aws-cdk-python-setup/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
Platform CLI
gemini skills install https://github.com/github/awesome-copilot --path skills/aws-cdk-python-setupManually: put the files in place
.devin/skills/aws-cdk-python-setup/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set554
The whole set →Similar
Questions about aws-cdk-python-setup
How do I install aws-cdk-python-setup in GitHub Copilot?
Run npx skills add github/awesome-copilot --skill aws-cdk-python-setup. The skill will be available at .github/skills/aws-cdk-python-setup/SKILL.md.
What does aws-cdk-python-setup do?
It guides you through the prerequisites, project initialization, dependency setup, CloudFormation synthesis, and AWS deployment workflow for Python CDK applications.
What do I need before using AWS CDK with Python?
You need Node.js 14.15.0 or later, Python 3.7 or later, AWS CLI, and Git. Configure the AWS access key, secret access key, default region, and output format with aws configure.
Source text
SKILL.md · MIT
--- name: aws-cdk-python-setup description: 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. --- # 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.
© github · MIT · github/awesome-copilot