This repository contains AWS Lambda functions for common tasks, including adding two numbers and uploading files to an S3 bucket.
A Lambda function that accepts two numbers and returns their sum.
- File:
add_numbers_lambda.py - Handler:
add_numbers_lambda.lambda_handler
A Lambda function that stores a document or PDF file in an S3 bucket.
- File:
upload_to_s3_lambda.py - Handler:
upload_to_s3_lambda.lambda_handler
add_numbers_lambda.py: Function to add two numbers.upload_to_s3_lambda.py: Function to upload a file to S3.payload.json: Example input data for testing.
- Clone this repository.
- Configure AWS Lambda with the provided Python files.
- Set up AWS IAM roles and permissions for S3 access.
- Use
payload.jsonfor testing the functions locally