aws-cdk-python-setup by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill aws-cdk-python-setup此技能提供使用 Python 处理 AWS CDK(云开发工具包) 项目的设置指导。
开始之前,请确保已安装以下工具:
npm install -g aws-cdk
cdk --version
# 安装 AWS CLI(如果尚未安装)
brew install awscli
# 配置凭证
aws configure
根据提示输入您的 AWS 访问密钥、秘密访问密钥、默认区域和输出格式。
mkdir my-cdk-project
cd my-cdk-project
cdk init app --language python
您的项目将包含:
app.py — 主应用程序入口点广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
my_cdk_project/ — CDK 堆栈定义requirements.txt — Python 依赖项cdk.json — 配置文件# macOS/Linux
source .venv/bin/activate
# Windows
.venv\Scripts\activate
pip install -r requirements.txt
主要依赖项:
aws-cdk-lib — 核心 CDK 构造constructs — 基础构造库cdk synth
生成包含 CloudFormation 模板的 cdk.out/ 目录。
cdk deploy
审查并确认部署到已配置的 AWS 账户。
cdk bootstrap
准备环境资源,例如用于资产存储的 S3 存储桶。
cdk diff 以预览更改。requirements.txt 固定版本以确保构建一致性。如果出现问题,请检查:
cdk doctor 以诊断环境问题。每周安装数
225
代码仓库
GitHub 星标数
26.9K
首次出现
6 天前
安全审计
已安装于
gemini-cli204
codex204
opencode202
cursor199
github-copilot197
amp197
This skill provides setup guidance for working with AWS CDK (Cloud Development Kit) projects using Python.
Before starting, ensure the following tools are installed:
npm install -g aws-cdk
cdk --version
# 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.
mkdir my-cdk-project
cd my-cdk-project
cdk init app --language python
Your project will include:
app.py — Main application entry pointmy_cdk_project/ — CDK stack definitionsrequirements.txt — Python dependenciescdk.json — Configuration file# macOS/Linux
source .venv/bin/activate
# Windows
.venv\Scripts\activate
pip install -r requirements.txt
Primary dependencies:
aws-cdk-lib — Core CDK constructsconstructs — Base construct librarycdk synth
Generates cdk.out/ containing CloudFormation templates.
cdk deploy
Reviews and confirms deployment to the configured AWS account.
cdk bootstrap
Prepares environment resources like S3 buckets for asset storage.
cdk diff before deployment to preview changes.requirements.txt pinned for consistent builds.If issues occur, check:
cdk doctor to diagnose environment issues.Weekly Installs
225
Repository
GitHub Stars
26.9K
First Seen
6 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli204
codex204
opencode202
cursor199
github-copilot197
amp197
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
117,000 周安装