AWS Lambda allows you to run code without provisioning or managing servers. In this guide, we will integrate AWS Lambda with Amazon S3 to trigger a function whenever a new object is uploaded. We will also walk through setting up the necessary infrastructure using Terraform.
Prerequisites
1️) Install Required Tools
Ensure you have the following installed on your machine:
Check if logs exist: If the list of log streams is empty, your Lambda function might not have run yet. Try uploading a new file to the S3 bucket to trigger it.
Verify IAM permissions: Ensure your IAM user has logs:DescribeLogStreams and logs:GetLogEvents permissions.