This repository provides best practices and template framework for developing AWS Cloud Development Kit(CDK)-based applications effectively, quickly and collaboratively.
Hi, I see that in your patterns lib/template/patterns folder, all the patterns extend the BaseConstruct. Each pattern's props also extend the ConstructCommonProps. What is the best way to create an instance of something like the LambdaSimplePatternProps to pass in to the lambda pattern? If i had to instantiate a LambdaSimplePatternProps by assigning all the fields from ConstructCommonProps, it would lead to a lot of boilerplate code.
I've also noticed in other projects that follow this devops setup, you don't extend BaseConstruct at all, which simplifies the usage of the pattern i think.
Could you clarify the best practice here regarding cdk.context.json and CI/CD? Should it be committed to source control? When deploying multiple environments to a single account via CI/CD, how does cdk.context.json get generated for, say, prod environment and committed to source control when synth may only be happening for prod via CI/CD server?