• 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...


  • cdk-ecr-sync: Sync Docker images to improve availability and save costs

    In the last years, Docker Hub became the the world’s largest library and community for container images. But if you use it wrong it can have negative effects on your availability and cause some unnecessary costs. To address this, I created a high-level CDK Construct which can be used to...