An opinionated collection of tips and best practices for effectively using the AWS Cloud Development Kit (CDK).
Open CDK is a community-maintained guide offering tips and best practices for using the AWS Cloud Development Kit effectively. It addresses the framework's complexity and the lack of established conventions by compiling practical advice on constructs, stacks, naming, tagging, and deployment strategies. The guide helps developers avoid common pitfalls and leverage CDK's full potential for Infrastructure as Code on AWS.
Developers and DevOps engineers already familiar with CDK concepts who are building or managing AWS infrastructure using the AWS Cloud Development Kit. It's particularly valuable for teams adopting CDK in production and seeking to establish internal best practices.
Developers choose this guide because it provides curated, real-world advice that fills the gap in official documentation, offering pragmatic solutions to common CDK challenges. Its community-driven nature ensures it stays updated with evolving practices and serves as a collective knowledge base for efficient and error-resistant CDK usage.
This guide is an opinionated set of tips and best practices for working with the AWS Cloud Development Kit
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Highlights costly defaults, such as NAT gateways in VPCs, with specific cost calculations to prevent budget surprises.
Recommends mental models like outer and inner stacks to separate concerns, improving scalability and maintainability in multi-stack applications.
Advocates for using cdk.json for stage-scoped config and avoiding CloudFormation parameters, enabling better pre-deployment validation.
Compiles tips from active CDK users, including workarounds for CLI limitations and tool recommendations like aws-vault and former2.
As a community guide, it includes subjective recommendations that may not align with AWS best practices or suit all team workflows.
Documents limitations like lack of MFA support in CDK CLI, forcing reliance on external tools and complex workarounds.
Notes that not all AWS resources can be tagged via CloudFormation, requiring manual intervention or custom resources for full compliance.