简体   繁体   English

从 Python lambda 函数获取本地文件

[英]Get local Files from Python lambda Function

i want get a file (List of files) located in my Local machine using a python lambda Function.我想使用 python lambda 函数获取位于我的本地机器中的文件(文件列表)。

Im using the So library and try run local and works, but when y try run in aws my code does not detect the file.我使用 So 库并尝试在本地运行并有效,但是当您尝试在 aws 中运行时,我的代码未检测到该文件。

I need verify a folder and it if has a file, upload this file to s3.我需要验证一个文件夹,如果它有一个文件,则将此文件上传到 s3。 This process (Verification and upload) will run according to a schedule.此过程(验证和上传)将按计划运行。

Batch file it´s not a option.批处理文件不是一个选项。

Thanks for the help谢谢您的帮助

It appears you are referring to: Access data sources on premises - Azure Logic Apps |您似乎指的是: 访问本地数据源 - Azure 逻辑应用 | Microsoft Docs 微软文档

No, there is no equivalent for AWS Lambda functions.不,AWS Lambda 函数没有等效项。

An AWS Lambda function can access services on the Internet (eg make API calls, access websites), but you would need to code that yourself. AWS Lambda 函数可以访问 Internet 上的服务(例如进行 API 调用、访问网站),但您需要自己编写代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM