AWS CDK Static Web + API Multiple Branches in One Account

Namespace based deployment Estimated Reading Time: 20 minutesDifficulty: Intermediate This post is purely illustrative and is to be considered a deployment option that may suit an organization's CICD workflow and feedback loop for Website and API resource deployment. With one development team working on a single project in multiple branches, it may be advantageous to …

Using AWS CDK with dotenv -r and TypeScript

Note, I prefer the node --require option of loading .env variables over importing or requiring in application code. TLDR; install dotenv as a development dependency in the cdk.json in the root of the project directory add the following in bold : { "app": "npx ts-node -r dotenv/config --prefer-ts-exts bin/<stack-name>.ts" } When developing via AWS CDK it is easy to set environment …