A collection of AWS CDK code samples crafted in TypeScript, featured on my blog at https://towardsthecloud.com/blog
Tip
Towards the Cloud eliminates AWS complexity so you ship faster with confidence, cut costs by 30%, and become compliant.
Sounds too good to be true? We'll assess your AWS account for free and report exactly where you stand. You'll receive a report with security findings and cost optimization opportunities. After that you can decide whether to fix these findings yourself or let us handle it. No strings attached.
☁️ Discover how we cut AWS costs by 30% and accelerate SOC 2 compliance...
What starts as a simple deployment quickly spirals into inefficient architectures that cost 40-60% more than needed, security blind spots that risk customer data, and teams that burnout from managing operations on AWS instead of building product.
Traditional consultancies prioritize billable hours over outcomes, then disappear after setup. We do the opposite...
- ✅ Compliant multi-account Landing Zone:
- Provisions AWS accounts with security guardrails out of the box - 100% CIS benchmark compliant
- Secure Single Sign-On (SSO) for clean user access management
- Everything is built using AWS CDK ensuring consistency, version control, and repeatable deployments
- See what features are already included in our landing zone on our public roadmap
- ✅ Off-the-shelf compliant CDK components: Develop secure infra quicker without reinventing the wheel
- ✅ Complete CI/CD with easy rollbacks: Deploy more frequently because of IaC safety
- ✅ Quarterly checks: Proactively receive Cost Optimization assessments + Security Reviews
- ✅ Fractional Cloud Engineer: On-demand access to a decade of AWS Cloud experience to help you use best practices
- 30% Lower AWS Bill: Proactive quarterly reviews catch overspending before it happens (30-60% documented savings)
- Accelerate SOC 2/HIPAA compliance: Our Landing Zone automatically sets up security guardrails on your AWS accounts with 100% CIS compliance from day one
- Easily stay compliant: Our automated monitoring and proactive quarterly security reviews give you control so yearly audits are smooth, not stressful
- Your Team Ships Faster: Our Pre-built secure infrastructure components let your team focus on product, not AWS
- Save on hiring costs: Access expert Cloud knowledge through our flexible retainer instead of committing to a full-time Cloud Engineer
Proof: Y Combinator startup Accolade's founder on how our Landing Zone accelerated their SOC 2 certification:
"Danny's solution and AWS expertise stood out with comprehensive accelerators, documentation, and clearly articulated design principles. We achieved a perfect security score in days, not months." — Galen Simmons, CEO
To run a Typescript example, execute the following:
$ npm install -g aws-cdk
$ cd EXAMPLE_DIRECTORY
$ npm install
$ cdk synth
$ cdk deploy
Then, to dispose of the stack/s afterwards
$ cdk destroy
AWS CDK Example | Description | Blogpost link |
---|---|---|
application-load-balanced-fargate-service | Create an Application Load Balanced Fargate Service in AWS CDK | Click here |
cloudfront-s3-origin | Create a CloudFront distribution with an S3 bucket as origin | . |
custom-role-lambda-function | Create a custom IAM role for an AWS Lambda function | Click here |
aws-cdk-dependson-relation | Create a DependsOn relation between resources in AWS CDK | Click here |
openid-connect-bitbucket | Create a Bitbucket OpenID Connect (OIDC) provider in AWS CDK | Click here |
openid-connect-github | Create a GitHub OpenID Connect (OIDC) provider in AWS CDK | Click here |
rds-with-cloudwatch-alarms | Create an Amazon RDS instance with custom CloudWatch alarms | . |
scheduled-fargate-task | Create a Scheduled Fargate Task example in AWS CDK | Click here |
scheduled-rds-stop-and-start | Create a Scheduled stop and start function for an Amazon RDS Instance | Click here |
share-resources-across-stacks | Create a stack where you share resources to another stack | Click here |