DynamoDB TTL: Modify with AWS CDK

Ever tried to update the TTL attribute of a DynamoDB table using the AWS CDK and got a InvalidRequest in CDK or a ValidationException via the CLI? I did, and it took me a while to figure out why. In this post, I’ll explain what happened and how to avoid the same issue in the future. This is a …

AWS CDK: Always Set Defaults (Why and How)

We are nearing the end of the year, the time to reflect on the past year and definitely share the things that went “wrong” or in this case the things that could have been done better. This is one of those things that I wish I knew earlier, and I hope it helps you too.

CloudFormation: Avoid Stack Outputs Best Practices

Recently I’ve been working on a new project where we created many resources in a lot of different stacks. A feature of CloudFormation is that you can output values from your stack, which is great for referencing resources in other stacks. However, while there is a use-case for this, I’ve …

AWS CDK: Retrieve SSM Parameters (4 Methods)

When working with AWS CDK and using SSM Parameters to store information in between stacks there are multiple ways to retrieve the value, with both advantages and disadvantages. In this post, I’ll go over the different ways to retrieve SSM parameters in AWS CDK and when to use them.

AWS CDK Tips: Override Any Resource Configuration

Unique as I am I decided to start writing short blog posts about recent discoveries that suddenly clicked inside my head. For the first one; I have been working a lot with AWS CDK recently and decided that I wanted to contribute back to the AWS-CDK source code.

GitHub Actions: Deploy Static Websites Automatically

Authenticate GitHub with OpenID Connect to deploy your CDK project to your AWS Organization

After making an AWS CDK project one of the first thing you will realize is that you don’t want to keep running cdk deploy to update your production environment. This is a fine way of working when you …