This repository is structured as follows:
This manages the CI of this repository, right now just updating our github page hosting documentation when merging a branch into main.
This contains the app created with CDK
This contains two sections:
-
helpers
which contains our logic for checkedrequired
,default
andallowed
properties on a construct -
Lambda
an example L2+ Lambda construct that we would use on a project to enforce best practices, in this directory there's a few interesting pieces to look at:config.ts
contains all our configuration for our lambda construct, specifying what data is required, allowed, and defaulted to (e.g. look at the allowed runtime)error.ts
contains all the warnings and errors that we throw (take a look at how the helper functionvalidateAllowedProperties
works). These are intended to be informative to the developer to explain best practices, not just prescribe them
This directory contains documentation for developers to read while coding and when they encounter errors. Its intent is to share knowledge more consistently across a team, helping empower less experienced developers to be more autonomous.
It follows the default structure created when you initialise a docusaurus page (we have removed the blog
section), and all documentation is kept in the docs
directory
The latest version of the documentation can be found here.
This contains a simple helloWorld
lambda
Contains stacks, right now only having one stack with a single lambda in it (using our HelloWorld
construct)