Post
AWS
In Python script, it downloads files from S3 to Blank_file.txt to read and write the content. How do I do it the same way when the data is in the AWS Lambda Function?
Posted on 20th April 2024
Use the below mentioned code:
import boto3
s3 = boto3.resource('s3')
obj = s3.Object(bucketname, itemname)
body = obj.get()['Body'].read()
STILL GOT QUERIES?