James Denyer 7ed3679eb4
first 7 videos with transcripts (#3259)
* first 10 videos with transcripts

* One tab to rule them all

* Update layout

* Rebuild asset bundles

* Fix up URL slugs

* Fix AI answers heading level

---------

Co-authored-by: Christian Nunciato <chris@nunciato.org>
2023-08-12 15:53:24 +00:00

3.9 KiB

title, meta_desc, featured, pre_recorded, pulumi_tv, unlisted, gated, type, external, block_external_search_index, url_slug, hero, main, transcript
title meta_desc featured pre_recorded pulumi_tv unlisted gated type external block_external_search_index url_slug hero main transcript
Easily build container-based AWS Lambda Functions Watch as Pulumi VP of Engineering, Lee Zen, helps you to get started using Container Image Support in AWS Lambda. false true false false false webinars false false easily-build-container-based-aws-lambda-functions
title
Easily build container-based AWS Lambda functions using Pulumi
title youtube_url sortable_date duration description presenters
Easily build container-based AWS Lambda functions using Pulumi https://www.youtube.com/embed/gB9T1aW3gSk 2020-12-01T10:00:00-07:00 2 minutes With the announcement of Container Image Support in AWS Lambda, the workflow for publishing serverless components is now easier than ever. Watch as Pulumi VP of Engineering, Lee Zen, helps you to get started using this powerful new feature. [Read our blog](/blog/aws-lambda-container-support/) for more information.
name role
Lee Zen VP of Engineering, Pulumi
Pulumi makes it easy to take advantage of AWS Lambda's ability to package serverless functions as container images. In this video, we'll build a video thumbnailer. Let's start with the bucket that we can push videos to. Before, running FFmpeg and Lambda was onerous. Now we can simply package it as part of our container, build it, and push the image to ECR. Pulumi makes it easy with a single line of code. Next, we need to give Lambda the right permissions for this function. We're able to take advantage of the IDE, use automatic completion as well as TypeScript enums. Let's finish off our example by creating the Lambda function and referencing the image we just pushed. It's easy to wire up the functions to the S3 bucket notifications in a single line of code. We export the bucket name for use outside of our program. Finally, let's augment our example by creating a callback to log information on when we create new thumbnails. That's it. And just a couple of lines of code, we built the thumbnailing service. Let's deploy it. Here, you can see it's building the container image, pushing it as well as creating the various other resources we've defined. While that's deploying, let's take a quick look at our Docker file to see how we're building our image. You can see it's fairly straightforward. Let's also take a quick look at the function handler. We're simply shelling out to FFmpeg and copying the thumbnail to S3. Let's grab a simple clip to try out. Our deployment finished in just a couple of minutes. Let's watch the logs for our stack and try uploading our clip. We can see the logs for the function processing the clip. We can also see the logs for our other function that logs thumbnail creation. Let's copy that thumbnail and take a look. Success. We hope you can see just how simple and easy Pulumi makes it to use container images with AWS Lambda. Our examples are in TypeScript, but Pulumi also supports Python, .NET and Go. Give it a try today.