August 22, 2021
CDK Tricks
There are a few tricks I’ve learnt recently that I thought I would share with you, as I’ve found them really useful.
Constructs Constructs are objects that can contain a set of other objects to define a standard set of components. You can use constructs inside of constructs or you can user lower level Cfn primitives.
You can find the AWS Documentation here:
https://docs.aws.amazon.com/cdk/latest/guide/constructs.html https://cdkworkshop.com/30-python/40-hit-counter.html To get started you inherit the Construct class, creating your new class. You can initiate the class with any variables you wish to pass in to make decisions on your components.
Read more