Webpack 5 Builds for AWS Lambda Functions with TypeScript

Webpack 5 Builds for AWS Lambda Functions with TypeScript

Today’s post will be a short overview that bridges these together: it shows how I bundled the TypeScript code from the Twitter post with node modules and prepare it for deployment. Webpack 5 Builds for AWS Lambda Functions with TypeScript

In a previous post, I wrote about  self-destructing tweets which runs as an AWS Lambda function every night at midnight.

While that post was about the code itself, most of the AWS CDK infrastructure information had been written in a previous post about  sending a serverless Slack message which demonstrated how to run an AWS Lambda on a cron timer.

Today’s post will be a short overview that bridges these together: it shows how I bundled the TypeScript code from the Twitter post with node modules and prepare it for deployment.

The Folder Structure

I am making assumptions here. The most “complex” set up I normally have for Lambdas is to write them in TypeScript and use Babel for transpilation.

Given this will be a familiar standing for most, let’s work with that.

aws javascript typescript webpack lambda

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Webpack 5 Builds for AWS Lambda Functions with TypeScript

Webpack 5 Builds for AWS Lambda Functions with TypeScript. Re-useable settings for all your TypeScript Lambda needs.

Deploy a Typescript Lambda Function with AWS CDK and a Deno Layer

Learn how to deploy a Deno layer with AWS CDK and TypeScript. A Lambda function. Lambda layer that enables Deno runtime. A TypeScript Program.

Invoke AWS Lambda with Another Lambda Function with Nodejs

In this article, I will show you how to invoke a lambda function from another lambda function.

Recursive AWS Lambda Functions in Node.js JavaScript

AWS Lambda functions are a great way to execute short-running processes without worrying about what hardware they’re going to run on. Sometimes though, we have a requirement to execute a longer-lived process, but unfortunately AWS imposes a 15 minute execution limit.