AWS Cdk Python Setup
GitHubOfficialFirst committed by sanjay-rbDistributed by GitHub
- Skill
- Workflow
- Cloud and DevOps
- MIT
- Low risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured workflow for initializing and managing AWS Cloud Development Kit (CDK) projects with Python. It covers the essential prerequisites, environment configuration, project scaffolding, dependency management, and the standard deployment lifecycle for AWS infrastructure.
What it does
- Guides users through installing the AWS CDK CLI and necessary prerequisites.
- Provides steps to initialize a new Python-based CDK project.
- Details the process for setting up virtual environments and managing Python dependencies.
- Outlines the workflow for synthesizing, bootstrapping, and deploying infrastructure stacks.
- Offers best practices for maintaining consistent and safe infrastructure deployments.
When to use it
- When starting a new infrastructure-as-code project using AWS CDK and Python.
- When setting up a local development environment for AWS cloud resource management.
- When needing a reference for standard CDK deployment and synthesis commands.
- When troubleshooting common environment or configuration issues in a CDK project.
Advantages
- Provides a clear, step-by-step path for environment setup.
- Promotes standard practices like using virtual environments and dependency pinning.
- Simplifies the transition from project initialization to cloud deployment.
- Includes helpful diagnostic commands for environment troubleshooting.
Usage examples
- “How do I start a new AWS CDK project using Python?”
- The agent provides the commands to create a directory, run the CDK initialization command for Python, and set up the virtual environment.
- “What is the standard workflow to deploy my CDK stack to AWS?”
- The agent explains the sequence of synthesizing the template, bootstrapping the environment, and executing the deployment command.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/github/aws-cdk-python-setup/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip aws-cdk-python-setup.zip -d .agents/skills
Documentation by sanjay-rb
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 --version2. Configure AWS Credentials
# Install AWS CLI (if not installed)
brew install awscli
# Configure credentials
aws configureEnter 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 pythonYour 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\activate5. Install Python Dependencies
pip install -r requirements.txtPrimary dependencies:
aws-cdk-lib— Core CDK constructsconstructs— Base construct library
Development Workflow
Synthesize CloudFormation Templates
cdk synthGenerates cdk.out/ containing CloudFormation templates.
Deploy Stacks to AWS
cdk deployReviews and confirms deployment to the configured AWS account.
Bootstrap (First Deployment Only)
cdk bootstrapPrepares 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
- ATTRIBUTION.mdAdded by AutoGineer875 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md2.6 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "aws-cdk-python-setup", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: 797337f33f73e35d08d82f840e21c4b8c4932d88
First committed by: sanjay-rb (https://github.com/sanjay-rb)
Publisher: GitHub (https://github.com/github)
Licence: MIT License (https://github.com/github/awesome-copilot/blob/797337f33f73e35d08d82f840e21c4b8c4932d88/LICENSE)
Licence evidence: repository licence LICENSE
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from LICENSE
Requirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs a command-line tool, Needs Python, Needs Node.js
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- First committed by
sanjay-rb
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/aws-cdk-python-setup · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- sanjay-rb
AutoGineer is not affiliated with or endorsed by sanjay-rb or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download aws-cdk-python-setup.zip