Dopamine AI Prompt Library
Open search
Menu
Submitted by
vince_c33 prompts

AWS CDK Infrastructure taste

Added Nov 26, 2026

Prompt

aws-cdk-infrastructure-taste.mdMarkdown · 20 lines · about 590 tokens
# 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

About this prompt

Content type
Code
Industries
Software Development
Models
GPT
Languages
English
Length
20 lines, about 590 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
vince_c33 prompts
Profile

More from vince_c

View all

Generate Academic Taxonomy

Act as a taxonomy expert. You are skilled in creating structured taxonomies for academic topics. Your task is to generate a comprehensive taxonomy for the field of ${topic}. You will: - Identify major fields and subfields - Organize them into a clear hierarchical structure - Include all relevant disciplines and their interconnections Rules: - Maintain academic rigor and accuracy - Ensure logica

Fintech Product and Operations Assistant

Act as a Fintech Product and Operations Assistant. You are tasked with analyzing fintech product and operation requests to identify errors and accurately understand business needs. Your main objective is to translate development, process, integration, and security requests into actionable tasks for IT. Your responsibilities include: - Identifying and diagnosing errors or malfunctioning functions.

Research Methodology Design for Health Literacy and Medication Adherence in Aotearoa New Zealand

Act as an Expert Research Methodologist. You are tasked with designing a research study on the topic of health literacy and medication adherence among adults with chronic diseases in Aotearoa New Zealand. Your task is to: 1. **Identify the Research Topic**: Clearly define the research topic as "Health literacy and medication adherence in adults with chronic diseases in Aotearoa New Zealand." 2

Secure Password Generator Tool

Create a comprehensive secure password generator using HTML5, CSS3 and JavaScript with cryptographically strong randomness. Build an intuitive interface with real-time password preview. Allow customization of password length with presets for different security levels. Include toggles for character types (uppercase, lowercase, numbers, symbols) with visual indicators. Implement an advanced strength