aws-cdk-python-setup — скилл для GitHub Copilot: установка
Скилл помогает подготовить окружение для AWS CDK на Python, создать проект и выполнить деплой в AWS. Подойдёт для старта нового CDK-приложения.
npx skills add github/awesome-copilot --skill aws-cdk-python-setup -a claude-codeЧто делает aws-cdk-python-setup
Скилл ведёт через настройку проекта AWS CDK на Python. Он учитывает Node.js версии 14.15.0 или выше для CLI, Python версии 3.7 или выше, AWS CLI и Git. Также показывает установку CDK CLI через npm, настройку ключей AWS командой aws configure и создание проекта через cdk init app --language python.
В проекте появляются app.py, каталог my_cdk_project/, requirements.txt и cdk.json. Инструкции включают активацию .venv, установку зависимостей через pip install -r requirements.txt, синтез шаблонов командой cdk synth, предварительный просмотр изменений через cdk diff и деплой с cdk deploy. Для первого деплоя нужен cdk bootstrap, а для диагностики окружения — cdk doctor.
Ставьте его, если начинаете CDK-проект на Python в GitHub Copilot. Если окружение уже настроено и нужен только код стека, скилл даст лишние шаги.
Какие задачи решает
- подготовить окружение для AWS CDK на Python
- создать новый проект через
cdk init - настроить виртуальное окружение и зависимости
- проверить изменения перед деплоем
- выполнить первый деплой в AWS
Примеры запросов агенту
- Подготовь окружение для AWS CDK на Python и создай проект в `my-cdk-project`.
- Проверь зависимости из `requirements.txt`, активируй `.venv` и выполни `cdk synth`.
- Покажи, что нужно сделать перед первым запуском `cdk deploy`, включая `cdk bootstrap`.
Как установить aws-cdk-python-setup
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill aws-cdk-python-setup -a claude-code2Вручную: положить файлы
~/.claude/skills/aws-cdk-python-setup/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/aws-cdk-python-setup/
Вручную: положить файлы
.agents/skills/aws-cdk-python-setup/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/aws-cdk-python-setup/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill aws-cdk-python-setup2GitHub CLI
gh skill install github/awesome-copilot aws-cdk-python-setup3Вручную: положить файлы
.github/skills/aws-cdk-python-setup/SKILL.mdКомандой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/aws-cdk-python-setupВручную: положить файлы
.devin/skills/aws-cdk-python-setup/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о aws-cdk-python-setup
Как установить aws-cdk-python-setup в GitHub Copilot?
Выполните npx skills add github/awesome-copilot --skill aws-cdk-python-setup, затем скилл будет доступен по пути .github/skills/aws-cdk-python-setup/SKILL.md.
Что делает aws-cdk-python-setup?
Скилл объясняет, как настроить Node.js, Python, AWS CLI и Git, создать AWS CDK-проект на Python, установить зависимости и развернуть стек в AWS.
Что нужно подготовить для работы с AWS CDK Python?
Нужны Node.js версии 14.15.0 или выше, Python версии 3.7 или выше, AWS CLI и Git. Также потребуется настроить AWS Access Key, Secret Access Key, регион и формат вывода через aws configure.
Исходный текст
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