gpt4 book ai didi

amazon-web-services - 使用无服务器框架创建 S3 存储桶并添加文件

转载 作者:行者123 更新时间:2023-12-03 07:16:11 25 4
gpt4 key购买 nike

是否可以在我的 serverless.yaml 文件中指定要上传到 S3 存储桶资源的静态文件?

resources:
Resources:
PropertiesBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: ${self:provider.stage}-MyBucket
File:
./myfile.json
????

最佳答案

任何官方 AWS CloudFormation 资源都不支持将静态文件添加到 S3 存储桶,但gilt/cloudformation-helpers有一个自定义资源,Put S3 Objects ,可以做到这一点。请参阅Usage有关安装和使用的说明。

关于amazon-web-services - 使用无服务器框架创建 S3 存储桶并添加文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41393143/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com