简体   繁体   English

如何在 AWS S3 文件上传上触发 Azure 逻辑应用程序?

[英]How to trigger an azure logic app on AWS S3 file upload?

I am looking to find a way to trigger a logic app once a file is uploaded to my S3 bucket in AWS.一旦文件上传到我在 AWS 中的 S3 存储桶,我正在寻找一种方法来触发逻辑应用程序。 The integration according to the image below and the documentation is expecting an object key which means it is only able to trigger once a specific object is updated根据下图和文档的集成需要一个对象键,这意味着它只能在特定对象更新后触发在此处输入图像描述

Is there a way I can trigger a logic app on ANY S3 uploads and get the metadata of that specific object?有没有办法可以在任何 S3 上传时触发逻辑应用程序并获取该特定对象的元数据?

After a couple of days working on the solution, there is no possible way from azure side to get informed of any uploads to a S3 bucket as the time of writing this.经过几天的解决方案工作后,在撰写本文时,天蓝色方面无法获得任何上传到 S3 存储桶的通知。 I was however able to handle it via a Lambda function as the comment from @Skin suggested.然而,正如@Skin 的评论所建议的那样,我能够通过 Lambda 函数来处理它。 A lambda function which is triggered via a S3 upload and it is calling Logic App via HTTPs.通过 S3 上传触发的 lambda 函数,它通过 HTTPs 调用逻辑应用程序。 of course, the Lambda has some configuration to it in VPC to be able to call external resources.当然,Lambda 在 VPC 中对其进行了一些配置,以便能够调用外部资源。

  1. Create Azure logic app with cron to fetch data every 5 minutes or so..使用 cron 创建 Azure 逻辑应用,每 5 分钟左右获取一次数据。
  2. Use S3 connector and get the S3 content.使用 S3 连接器并获取 S3 内容。
  3. Use the data collector connector and move this either into store account or workspace.使用数据收集器连接器并将其移动到商店帐户或工作区。

在此处输入图像描述

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

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