How to upload a file from S3 in Lambda

0 votes
There is a traditional way of uploading file in Lambda. Is there any way of doing the same using S3 bucket?
Jan 24, 2019 in AWS by Rishab
• 1,490 points
5,132 views

1 answer to this question.

0 votes

Yes there is an option where you can simply zip the file and upload it to S3 and then state the S3 path.

1.You simply upload the file to S3.

2. Create a Lambda function.

3. Instead of uploading zip file select Upload file from Amazon S3.

4. Specify the path.

5. Select save and you are good to go.

answered Jan 24, 2019 by Priyaj
• 58,020 points
Can I access zip file present in s3 bucket of Account A , while creating lambda in Account B ?

Hi@Pratik,

I am not sure you can do it directly or not. But in another way, you can give permissions to your S3 bucket and first transfer data between two S3 bucket in two different account. After that you can use your file from s3 bucket to your lambda function.

Related Questions In AWS

0 votes
0 answers

How to upload a file in to aws s3 by using programmatically??

Sep 13, 2019 in AWS by anonymous

closed Sep 16, 2019 by Kalgi 3,897 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 58,020 points
10,122 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP