简体   繁体   English

是否有Lambda触发器将文件从S3存储桶推送/复制到SFTP服务器?

[英]Is there a Lambda trigger that will push/copy files from S3 bucket to the SFTP server?

我正在寻找一种设置Lambda触发器的方法,其中,如果将任何文件上传到S3存储桶中,则触发器将把文件推送/复制到SFTP服务器。

You have to use the following algorithm: 您必须使用以下算法:

  • Log in to AWS console, 登录到AWS控制台,
  • Lambda service, Lambda服务,
  • Create a new lambda function (choose a proper runtime); 创建一个新的lambda函数(选择适当的运行时);

Then you have to set a trigger (a left pane). 然后,您必须设置一个触发器(左窗格)。 If you want to trigger your lambda by s3 bucket then click on s3. 如果要通过s3存储桶触发lambda,请单击s3。

Then you have to configure your trigger (choose your bucket and trigger action). 然后,您必须配置触发器(选择存储桶和触发器操作)。 After you complete all of this steps it's a time to write a handler file. 完成所有这些步骤之后,就该编写处理程序文件了。

Do not forget that every single trigger has to be in the same region as lambda. 不要忘记,每个触发器都必须与lambda处于同一区域。

暂无
暂无

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

相关问题 使用 Paramiko 将文件从 AWS S3 存储桶复制到 SFTP - Copy files from AWS S3 bucket to SFTP using Paramiko AWS Lambda 尝试将文件从 S3 存储桶复制到另一个 S3 存储桶时出现无效存储桶名称错误 - Invalid bucket name error when AWS Lambda tries to copy files from an S3 bucket to another S3 bucket Python 中的 AWS Lambda 将新文件复制到另一个 s3 存储桶 - AWS Lambda in Python to copy new files to another s3 bucket 根据将文件从一个 S3 存储桶复制到另一个存储桶的清单文件触发 AWS Lambda function - Trigger AWS Lambda function based on a manifest file which copies files from one S3 bucket to another 如何使用 AWS Lambda 函数将文件从 AWS S3 存储桶复制到 EC2 linux 机器 - How to copy files from AWS S3 bucket to EC2 linux machine using AWS Lambda Functions 使用 SFTP 将文件从 AWS S3 传输到 Unix 服务器 - Transfer files from AWS S3 to Unix Server using SFTP 使用AWS Lambda中的Boto3将一个帐户中的S3存储桶复制到另一个帐户中的S3存储桶 - Copy from S3 bucket in one account to S3 bucket in another account using Boto3 in AWS Lambda 复制S3存储桶中嵌套文件夹中的文件 - Copy files in nested folders in S3 bucket 从 S3 存储桶下载 Lambda 依赖项 - downloading Lambda dependencies from S3 bucket 如何使用 python boto3 将文件和文件夹从一个 S3 存储桶复制到另一个 S3 - how to copy files and folders from one S3 bucket to another S3 using python boto3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM