Is there a way to save the JSON output of a function to S3 using AWS Lambda?

Published: 13/10/2019
Is there a way to save the JSON output of a function to S3 using AWS Lambda?
Source: STACKOVERFLOW.COM

I have written a function in Python to analyse documents and retrieve key-value pairs from forms in these documents. Below is just the handler bit of it. def handler(event, context): bucket = event['Records'][0]['s3']['bucket']['name'] key = urllib.parse.unquote_plus(event['Records'][0]['s3']['object']['key'], encoding='utf-8') try: document = TTFunction(bucket,key) KVpairs=[] fo

Read more
Related news
Comment
FACEBOOK