• Hey CDK, how should I handle dependencies?

    At some point, every CDK developer has to deal with dependencies. While it’s easy within CDK Applications, it is more complicated when writing CDK Libraries. In this article, I will show how to manage dependencies in CDK Applications and Libraries written in TypeScript. This is another part of my ‘Hey...


  • Hey CDK, how do cross-account deployments work?

    The AWS CDK makes it easy to deploy your application, regardless if it consists of multiple stacks that are deployed in multiple accounts and regions. Even assets, for example, the code of lambda functions or the container image of Fargate services, are not a problem. But in your pipeline, you...


  • Hey CDK, how can I use a tarball as Docker image asset?

    With assets, the AWS CDK provides an easy way to build Docker images based on a Dockerfile. But sometimes, Docker images are built natively by other tools (e.g. jib). How can they be integrated as native container image assets into your stack? Since version 1.113.0 it’s possible to use tarballs...


  • Hey CDK, how can I upload a stack template to S3?

    Most of the time, CDK hides it very well that behind the scenes a CloudFormation template is synthesized and used for deployment. But sometimes it’s necessary to have a CloudFormation template on S3. Think about StackSets or ServiceCatalog products. As CDK user, you might want to use BucketDeployment and think...


  • Hey CDK, how can I secure my Fargate Service with ALB authentication?

    There are many use cases where you want to allow only authenticated users on your website. For example internal CI/CD tools, monitoring tools, or documentation sites. Application Load Balancer (ALB) provides a managed way to authenticate users either by Cognito or OIDC. Unfortunately, this topic does not get many attentions...