【发布时间】:2017-08-30 21:45:08
【问题描述】:
我正在尝试创建多个具有相同属性的 S3 存储桶。但我无法创建多个 s3 存储桶。
我发现在http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html 如果你有多个相同类型的资源,你可以用逗号分隔它们一起声明
但我没有找到任何示例,也不知道该怎么做。我尝试调试但没有得到结果。 请建议。 以下是我的 yaml 文件:
AWSTemplateFormatVersion: '2010-09-09'
Resources:
myS3Bucketlo:
Type: AWS::S3::Bucket
Properties:
AccessControl: AuthenticatedRead
Outputs:
WebsiteURL:
Value: !GetAtt myS3Bucketlo.WebsiteURL
Description: URL for the website hosted on S3
【问题讨论】:
标签: amazon-web-services amazon-s3 cloud amazon-cloudformation