0

Situation: My AWS Lambda analyze a given file and return cleaned data.

Input: path of the file given by the user

Ouptut: data dictionnary

Actually in my lambda I:

  • save the file from local PC to an s3
  • load it from the s3 to my lambda
  • analyze the file
  • delete it from the s3.

Can I simplify the process by loading in the lambda "cash memory" ?

  • load it from local PC to my lambda
  • analyze the file
3
  • What do you mean by "cash memory"? Commented May 12, 2021 at 9:34
  • I mean: lambda "RAM" ----- lambda temporary variable storage ----- variables that will disappear at the end of the lambda. Commented May 12, 2021 at 9:43
  • @Marcin I assume they meant to say "cache". Commented May 12, 2021 at 23:21

2 Answers 2

2

No we can not directly load the file from local to Lambda or its tmp memory.

But if you want you can use a Storage gateway which automatically sink any file from a physical drive( your local pc ) into S3. This would help you to eliminate your step 1 ( save the file from local PC to an s3 ).

Sign up to request clarification or add additional context in comments.

Comments

0

First of all, you might use the wrong pattern. Just upload file to S3 using AWS SDK and handle lambda with S3:CreateObject event.

1 Comment

If you do that, where's the output from Lambda going to go?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.