I need download file into the /tmp
folder in an AWS Lambda function.
And I need work with this file and get my file route.
I need download file into the /tmp
folder in an AWS Lambda function.
And I need work with this file and get my file route.
since you didn't mention language heres example using Python
FILE_NAME = "/tmp/lol.csv"
s3 = boto3.client('s3')
with open('FILE_NAME', 'wb') as f:
s3.download_fileobj('BUCKET_NAME', 'OBJECT_NAME', f)
Details here And ofcourse similar to boto3 depending on your language you'll get libraries which will facilitate this. e.g for C#