Skip to main content
skill GitHub Copilot official · GitHub

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.

Install into GitHub Copilot · Skills CLI (Vercel) All methods and platforms ↓
npx skills add github/awesome-copilot --skill aws-cdk-python-setup
Open on GitHub

What 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-setup

2GitHub CLI

gh skill install github/awesome-copilot aws-cdk-python-setup

3Manually: put the files in place

.github/skills/aws-cdk-python-setup/SKILL.md

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

gke-workload-scaling-troubleshooting official google Diagnoses GKE HorizontalPodAutoscaler failures and prepares GitOps fixes. Use it when metrics report or workloads fail to scale up or down. Claude Code Gemini CLI CX Codex 1,400installs bigquery-troubleshooting official google This skill investigates broken, slow, or costly BigQuery jobs. Use it to isolate bottlenecks, trace symptoms to causes, and choose remediation steps. Claude Code Gemini CLI CX Codex 1,400installs bigquery-optimization official google This skill helps reduce BigQuery costs, tune storage, and improve SQL queries. Use it for capacity planning and table layout changes. Claude Code Gemini CLI CX Codex 1,400installs wizard Matt Pocock This skill creates an interactive bash wizard for manual setup steps, CI secrets, third-party dashboards, and one-off migrations. Claude Code 553,369installs hyperframes-cli heygen-com Controls HyperFrames video workflows from the CLI: audits layouts and contrast, edits timeline clips, captures snapshots, and renders locally or in cloud runtimes. Claude Code CX Codex Cursor +1 1,200,000installs setup-pre-commit Matt Pocock This skill configures pre-commit checks for a JavaScript repository, running Prettier, type checking, and tests before each commit. Claude Code 489,289installs using-git-worktrees Jesse Vincent Prepares an isolated workspace before feature work or plan execution. It checks the repository first, then uses native worktree support or Git. Claude Code CX Codex 217,153installs finishing-a-development-branch Jesse Vincent This skill checks the test suite and guides branch completion: merge locally, open a Pull Request, or leave the work in place. Claude Code CX Codex 214,439installs

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

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor