Rahul Panwar Rahul Panwar 1 1 gold badge 4 4 silver badges 8 8 bronze badges. As long as you need this file only in the same invocation, there isn't a problem to do that. Not only in the same invocation, the file will be there for subsequent invocations of the same function. However it will be scoped locally just to this instance.
The container might be reused, so delete the file if you don't need it again, otherwise subsequent executions of the function might fill up the available disk space MB. Or in case it has to be done manually, how do we do it or how to track the space, thanks JohnRotenstein — omdurg. Show 1 more comment.
Active Oldest Votes. If you need the data to be more persistent you should use AWS S3. Add a comment. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. ElementTree as etree from datetime import datetime as dt import os import urllib import requests from urllib.
The JSON body of the request is provided in the event parameter. Please ask me to download files by saying, Ask auto downloader for download" If the user either does not reply to the welcome message or says something that is not understood, they will be prompted again with this text.
Seeker90 Seeker90 2 2 gold badges 12 12 silver badges 25 25 bronze badges. Do you download the file in one invocation and want to access it in another invocation? I want to download and access the file in the same invocation. How can I do that? Add a comment.
Active Oldest Votes. This works all the time for me. Have you tried this and experienced any issues? Renato Byrro Renato Byrro 2, 15 15 silver badges 27 27 bronze badges.
Sign up or log in Sign up using Google. Sign up using Facebook. Viewed 12k times. I got an error from CloudWatch when lambda is triggered. Just in case of best practices, I share the objectives of lambda: download S3 raw file resize file and upload new file to another S3 bucket Any suggestion is appreciated.
Phong Vu Phong Vu 2, 6 6 gold badges 16 16 silver badges 42 42 bronze badges. Add a comment. Active Oldest Votes. TemporaryFile as f: s3. BytesIO s3. Milan Cermak Milan Cermak 5, 2 2 gold badges 37 37 silver badges 53 53 bronze badges. Hope it helps. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name.
0コメント