{"kind":"Skill","metadata":{"namespace":"community","name":"aws-cdk-python-setup","version":"0.1.0"},"spec":{"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.","files":{"SKILL.md":"---\nname: aws-cdk-python-setup\ndescription: 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.\n---\n# AWS CDK Python Setup Instructions\n\nThis skill provides setup guidance for working with **AWS CDK (Cloud Development Kit)** projects using **Python**.\n\n---\n\n## Prerequisites\n\nBefore starting, ensure the following tools are installed:\n\n- **Node.js** ≥ 14.15.0 — Required for the AWS CDK CLI\n- **Python** ≥ 3.7 — Used for writing CDK code\n- **AWS CLI** — Manages credentials and resources\n- **Git** — Version control and project management\n\n---\n\n## Installation Steps\n\n### 1. Install AWS CDK CLI\n```bash\nnpm install -g aws-cdk\ncdk --version\n```\n\n### 2. Configure AWS Credentials\n```bash\n# Install AWS CLI (if not installed)\nbrew install awscli\n\n# Configure credentials\naws configure\n```\nEnter your AWS Access Key, Secret Access Key, default region, and output format when prompted.\n\n### 3. Create a New CDK Project\n```bash\nmkdir my-cdk-project\ncd my-cdk-project\ncdk init app --language python\n```\n\nYour project will include:\n- `app.py` — Main application entry point\n- `my_cdk_project/` — CDK stack definitions\n- `requirements.txt` — Python dependencies\n- `cdk.json` — Configuration file\n\n### 4. Set Up Python Virtual Environment\n```bash\n# macOS/Linux\nsource .venv/bin/activate\n\n# Windows\n.venv\\Scripts\\activate\n```\n\n### 5. Install Python Dependencies\n```bash\npip install -r requirements.txt\n```\nPrimary dependencies:\n- `aws-cdk-lib` — Core CDK constructs\n- `constructs` — Base construct library\n\n---\n\n## Development Workflow\n\n### Synthesize CloudFormation Templates\n```bash\ncdk synth\n```\nGenerates `cdk.out/` containing CloudFormation templates.\n\n### Deploy Stacks to AWS\n```bash\ncdk deploy\n```\nReviews and confirms deployment to the configured AWS account.\n\n### Bootstrap (First Deployment Only)\n```bash\ncdk bootstrap\n```\nPrepares environment resources like S3 buckets for asset storage.\n\n---\n\n## Best Practices\n\n- Always activate the virtual environment before working.\n- Run `cdk diff` before deployment to preview changes.\n- Use development accounts for testing.\n- Follow Pythonic naming and directory conventions.\n- Keep `requirements.txt` pinned for consistent builds.\n\n---\n\n## Troubleshooting Tips\n\nIf issues occur, check:\n\n- AWS credentials are correctly configured.\n- Default region is set properly.\n- Node.js and Python versions meet minimum requirements.\n- Run `cdk doctor` to diagnose environment issues.\n"},"import":{"commit_sha":"541b7819d8c3545c6df122491af4fa1eae415779","imported_at":"2026-05-18T20:05:35Z","license_text":"MIT License\n\nCopyright GitHub, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","owner":"github","repo":"github/awesome-copilot","source_url":"https://github.com/github/awesome-copilot/tree/541b7819d8c3545c6df122491af4fa1eae415779/skills/aws-cdk-python-setup"}},"content_hash":[214,194,164,123,32,103,90,48,128,203,69,8,255,69,230,129,240,111,72,250,58,191,202,205,8,252,63,107,217,235,97,107],"trust_level":"unsigned","yanked":false}
