简体   繁体   English

在 AWS SAM 模板中使用现有的 S3 存储桶

[英]Using an existing S3 bucket in AWS SAM template

I am using AWS SAM template for deployment of python AWS lambdas.我正在使用 AWS SAM 模板部署 python AWS lambdas。 The trigger for these functions are from existing S3 buckets.这些函数的触发器来自现有的 S3 存储桶。 But in SAM template I am unable to use existing buckets (only new bucket creation is supported), hence I'am creating the trigger manually.但在 SAM 模板中,我无法使用现有存储桶(仅支持创建新存储桶),因此我手动创建触发器。

Is there any way we could incorporate this in SAM template?有什么方法可以将其合并到 SAM 模板中?

you can't use an existing bucket with sam.您不能将现有存储桶与 sam 一起使用。 It's a limitation mention here .这是此处提及的限制。 You can try the workaround from this comment .您可以从此评论尝试解决方法。

Thx!谢谢!

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

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