Based on the sample from an AWS blog post: https://aws.amazon.com/blogs/aws/introducing-amazon-s3-object-lambda-use-your-code-to-process-data-as-it-is-being-retrieved-from-s3/
This template will create the following resources:
- S3 Bucket
- S3 Bucket Policy
- S3 Access Point
- S3 Object Lambda Access Point
- Lambda Function
- IAM Role
- Deploy the yaml template on AWS, using either the cli or console
- Upload a sample txt file to the newly created S3 bucket
- Modify the s3ObjectLambda-test.py with your bucket name, object key and your access point ARN
- Run python script and observe the print outs