aws-lambda

Serverless Sending and Receiving E-Mails, the CDK Way

Serverless sending and receiving e-mails using AWS is not fun in my opinion. AWS offers Simple Email Service (SES) to achieve this. But the UI and also Infrastructure as Code (IaC) support is lacking. You often need to manually change settings which is error prone. When I recently built another landing page for myself, I …

Serverless Sending and Receiving E-Mails, the CDK Way Read More »

5 Ways To Bundle a Lambda Function Within an AWS CDK Construct

bundle-lambda-function-in-cdk-construct

Have you ever tried to publish a CDK construct that was using a Lambda function, for example to create a custom resource or provide a REST API endpoint? It’s relatively easy to publish your construct if your Lambda function is just using the AWS SDK. But it gets more complicated as soon as other dependencies …

5 Ways To Bundle a Lambda Function Within an AWS CDK Construct Read More »

Automatically Generate a Nice Looking Serverless REST API Documentation

In the past years, technology made huge progress and automating your processes is more important than ever. Documenting your REST APIs is not an exception here. It’s even more important in the fast moving serverless world to automate your serverless REST API documentation to always keep it up-to-date. The OpenAPI (Swagger) standard helps you describing …

Automatically Generate a Nice Looking Serverless REST API Documentation Read More »

Going Serverless – Why and How (2)

After working for more than three years with AWS Lambda and other serverless services, I’ve came across various best practices to improve your way of going serverless. Let me share with you how you can successfully develop your software using serverless functions from a technical perspective.

Going Serverless – Why and How (1)

From monoliths to microservices and containers to serverless functions: the software engineering world is changing fast. Popular technologies from today will be outdated tomorrow and it isn’t easy to follow them all. The same is true for taking the first step when going serverless. Hence I’ll present you with my best practices for going serverless …

Going Serverless – Why and How (1) Read More »

Caching in AWS Lambda

In every software application, there are usually two main reasons to cache data: a) to improve performance and b) to reduce costs. Caching in AWS Lambda is not different. Instead, the reasons for caching might be even more important in this context. This blog post explains why it could be necessary for you and shows …

Caching in AWS Lambda Read More »

Remove old CloudWatch log groups of Lambda functions

Remaining Old CloudWatch Log Groups of Lambda Functions

Do you recognize this view when looking into your CloudWatch log groups? Each AWS Lambda function has an associated CloudWatch log group. However, there is no cleanup process available as soon as a relationship between a CloudWatch log group and Lambda function expires. In that case it’s necessary to remove these old log groups manually. …

Remove old CloudWatch log groups of Lambda functions Read More »

Shut down CloudFormation stack resources over night using AWS Lambda

blog-post-banner

A CloudFormation stack evolves over time and usually costs increase as well. You’ll probably not only have one stack, but instead have at least a production and a development stack. Even one development stack per developer might be common in your organization. This means the total costs increase even more. In order to prevent paying …

Shut down CloudFormation stack resources over night using AWS Lambda Read More »

Creating Different Environments With AWS CloudFormation

Recently, a question on stackoverflow.com popped up which asked for different environments with AWS CloudFormation. Here, I want to present my answer and give some more information about this topic. The code for this blog post can be found in my GitHub repository where I also have some more CloudFormation examples.