코딩 · 개발원문 · prompts.chat
안전한 AWS CDK 코드 작성 가이드
리뷰와 배포, 롤백이 안전하게 이루어지도록 AWS CDK 인프라 코드 작성 규칙을 제공합니다.
원제 · AWS CDK Infrastructure taste
- 추천 툴
- 코딩 에이전트형식 기준 추천
프롬프트 원문
# AWS CDK Infrastructure taste of a platform engineer who wants boring, reviewable cloud changes - Write CDK apps in TypeScript so constructs, props and IDE hints are fully typed. Confidence: 0.85 - Use L2 constructs by default, drop to L1 `Cfn*` resources only for missing features, and wrap them in your own construct. Confidence: 0.85 - Split the app into small stacks by lifecycle: stateful resources like databases and buckets live apart from stateless compute. Confidence: 0.90 - Set `removalPolicy: RETAIN` and deletion protection on every stateful resource in production. Confidence: 0.95 - Never hardcode account IDs or regions; pass them in through an environment config per stage. Confidence: 0.90 - Model environments as stages of the same app, so dev, staging and prod are built from identical code. Confidence: 0.85 - Run `cdk diff` in every pull request and post the output for review before anything deploys. Confidence: 0.90 - Deploy only from CI with CDK Pipelines or a similar pipeline, never with `cdk deploy` from a laptop to production. Confidence: 0.90 - Grant permissions with construct methods like `bucket.grantRead(fn)` instead of writing IAM policy JSON by hand. Confidence: 0.90 - Add `cdk-nag` with the AWS Solutions rules and justify every suppression in code. Confidence: 0.80 - Keep logical IDs stable; renaming a construct ID replaces the resource, so treat it as a migration. Confidence: 0.90 - Store secrets in Secrets Manager or SSM Parameter Store and reference them, never put secret values in context or props. Confidence: 0.95 - Tag every resource with owner, service and cost center through `Tags.of(app)`. Confidence: 0.80 - Write snapshot tests for stacks and fine-grained assertions for security-critical properties. Confidence: 0.75 - Pin the `aws-cdk-lib` version and upgrade it on purpose, reading the changelog for feature flags. Confidence: 0.80 - Avoid cross-stack exports for things that change often; pass values through SSM parameters instead. Confidence: 0.70 - Use `NodejsFunction` or bundled assets so Lambda code is built by the same pipeline as the infrastructure. Confidence: 0.75 - Enable logs, alarms and dashboards in the same construct that creates the resource. Confidence: 0.80 - Keep `cdk.context.json` committed so lookups are deterministic across machines. Confidence: 0.85
출처 · prompts.chat 공개 프롬프트 모음 · 작성 Fatih Kadir Akın — CC0(저작권 포기)로 공개된 원문을 그대로 싣습니다. 한국어 제목 · 설명은 AI 번역이며, 실행 결과는 아직 없습니다.
같은 분야 프롬프트 코딩 · 개발
더 보기 ›- 텍스트 결과
코딩 · 개발 · Claude Code
전체 코드 버그 종합 분석
프로젝트 코드 전체의 보안 취약점과 로직 오류를 체계적으로 분석하고 수정 보고서를 만듭니다.
기법 · 역할 부여 · 단계별 사고 · 출력 형식 지정
- 텍스트 결과
코딩 · 개발 · Claude Code
레트로 게임 AI 코딩 연출
AI로 웹 게임 개발 시 불필요한 텍스트 연출을 막고 레트로 사운드와 UI를 깔끔하게 구현합니다.
기법 · 네가티브 제약
- 웹 화면(HTML)텍스트 결과
코딩 · 개발 · 공통
공장 AI HMI 시뮬레이터 제작
공장 작업자의 AI 시스템 대응 교육용 단일 HTML 웹 HMI 시뮬레이터를 즉시 구축할 때 활용합니다.
기법 · 역할 부여 · 단계별 지시 · 출력 형식 지정