In this video we go over how to schedule a lambda function to run on a timer. For an example our function will delete files in an s3 bucket that are more than an hour old.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
📜Startup script:
https://github.com/AlexzanderFlores/W...
🙋♂️ Need help? Ask in our Discord community:
https://wornoffkeys.com/discord
💡 Have an idea for a video or course? Request it here:
https://wornoffkeys.com/content-request
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
🕐 Timestamps:
00:00 Introduction
00:22 Creating our Lambda function
02:50 Testing our Lambda function
03:21 Finding old files in s3
04:24 Testing our Lambda function
05:02 Deleting old files in s3
06:25 Testing our Lambda function
06:37 Uploading our Lambda function to AWS
09:48 Scheduling our Lambda function
10:56 Outro
#aws #amazonwebservices #nodejs #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos.