{"id":25863987,"url":"https://github.com/boringcontributor/cdk-monorepo","last_synced_at":"2026-05-29T23:02:03.808Z","repository":{"id":113466273,"uuid":"609594940","full_name":"boringContributor/cdk-monorepo","owner":"boringContributor","description":"Introduction to showcase the usage of AWS CDK with Turborepo in a DDD way.","archived":false,"fork":false,"pushed_at":"2023-03-07T21:46:35.000Z","size":143,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T00:28:22.984Z","etag":null,"topics":["aws","cdk","domain-driven-design","monorepo","turbo"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boringContributor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-04T16:48:06.000Z","updated_at":"2024-01-26T05:54:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"e99956f8-bdcd-473b-ae2a-b033be3f94ad","html_url":"https://github.com/boringContributor/cdk-monorepo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boringContributor/cdk-monorepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringContributor%2Fcdk-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringContributor%2Fcdk-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringContributor%2Fcdk-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringContributor%2Fcdk-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boringContributor","download_url":"https://codeload.github.com/boringContributor/cdk-monorepo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringContributor%2Fcdk-monorepo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33673628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cdk","domain-driven-design","monorepo","turbo"],"created_at":"2025-03-02T00:27:37.619Z","updated_at":"2026-05-29T23:02:03.803Z","avatar_url":"https://github.com/boringContributor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDK Examples\n\nThis project demonstrates how to use AWS CDK with Turborepo and DDD.\n\n## Goals\nI want to answer the following questions by giving examples and resources:\n- How to structure a CDK project\n- How to apply DDD to a serverless architecture\n- How to use Turborepo to manage a CDK project\n- How to leverage certain sevices with the CDK\n\nEach stack focuses on a specific AWS services and tries to show how to use it with the CDK.\n\n\n## Project Structure\n\nThe project is structured as follows:\n\n- `iac/` - contains the CDK project and everything related to the backend infrastructure\n- `packages/` - contains the domains that are deployed to the backend infrastructure\n\nServices are structured in a very simplified [DDD](https://en.wikipedia.org/wiki/Domain-driven_design) manner. This is inspired by a great [introduction to DDD by Dax Raad](https://www.youtube.com/watch?v=MC_dS5G1jqw).\n\n![test](./assets/ddd.svg)\n\n## Stacks\n\nEvery example is a separate stack.\nThe project contains the following stacks:\n\n- `PolicyStack` - contains infrastrcuture for the policy service. It is intended to be used to update or enforce AWS policies e.g. change the retention of log groups globally or enforce a specific tag on all resources. This stack demonstrates the usage of the Event Bridge Scheduler and Lambda.\n    -  [Visuals for common patterns in Event Driven Architecture](https://serverlessland.com/event-driven-architecture/visuals)\n\n## FYI\n\n- The CDK still has some problems with a monorepo setup. You need to install `esbuild` on the root of the project in order to build your `NodeJSFunctions`. See [this pr](https://github.com/aws/aws-cdk/pull/18216/files)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboringcontributor%2Fcdk-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboringcontributor%2Fcdk-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboringcontributor%2Fcdk-monorepo/lists"}