본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)40k · #7071

aws-cdk-python-setup

하는 일

이 안내서는 Python으로 AWS CDK를 사용해 클라우드 프로젝트를 만들 수 있도록 컴퓨터를 설정하는 데 도움을 줍니다. 필요한 도구를 설치하고, 새 프로젝트를 만들고, 개발을 시작할 준비를 하는 방법을 보여 줍니다.

사용하는 경우

  • ✓코드로 클라우드 인프라를 구축하기 시작하고 싶을 때.
  • ✓이미 Python을 사용하고 AWS 리소스를 관리하고 싶을 때.
  • ✓AWS CDK 환경 설정을 요구하는 튜토리얼을 따라 할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/aws-cdk-python-setup/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/aws-cdk-python-setup/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Python으로 AWS CDK 프로젝트를 만들 수 있도록 컴퓨터를 어떻게 설정하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 Node.js, Python, AWS CLI 같은 도구가 설치되어 있는지 확인하고, AWS CDK 설치 방법을 보여 줍니다. AWS 자격 증명을 설정하고 Python 가상 환경을 포함한 새 프로젝트를 만드는 과정도 안내합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

npm install -g aws-cdk
cdk --version

2. Configure AWS Credentials

# 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

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

# macOS/Linux
source .venv/bin/activate

# Windows
.venv\Scripts\activate

5. Install Python Dependencies

pip install -r requirements.txt

Primary dependencies:

  • aws-cdk-lib — Core CDK constructs
  • constructs — Base construct library

Development Workflow

Synthesize CloudFormation Templates

cdk synth

Generates cdk.out/ containing CloudFormation templates.

Deploy Stacks to AWS

cdk deploy

Reviews and confirms deployment to the configured AWS account.

Bootstrap (First Deployment Only)

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.
자주 묻는 질문

AWS CDK란 무엇인가요?

서버나 데이터베이스 같은 클라우드 인프라를 Python 등 익숙한 프로그래밍 언어로 정의할 수 있게 해 주는 도구입니다.

이걸 쓰려면 AWS를 모두 알아야 하나요?

아니요, CDK가 과정을 단순하게 만듭니다. 이 안내서는 CDK 사용을 시작할 환경을 준비하는 데 집중합니다.

Python 가상 환경이란 무엇인가요?

Python 프로젝트를 위한 격리된 상자와 같습니다. 그 안에 쓰이는 라이브러리가 컴퓨터의 다른 설치와 충돌하지 않도록 보장합니다.

상세 정보

작성자의 원본 설명

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.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7071
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬