MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Aws-Cdk-Python-Setup

Aws-Cdk-Python-Setup是一款engineering方向的AI技能,核心价值是Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python,可用于解决开发者在engineering领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

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 d

Last verified on: 2026-05-30
mkdir -p ./skills/aws-cdk-python-setup && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/aws-cdk-python-setup/SKILL.md -o ./skills/aws-cdk-python-setup/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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.

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • GitHub Copilot users
  • AI users

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Using Aws-Cdk-Python-Setup in daily workflow
  • Automating repetitive engineering tasks

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Aws-Cdk-Python-Setup to Your Work

    Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.

  4. 4

    Review and Refine

    Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

How do I install Aws-Cdk-Python-Setup?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/aws-cdk-python-setup/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Not reading the full skill

Skills contain important context and edge cases beyond the quick start.

🔗 Related Skills