【发布时间】:2020-07-26 09:39:43
【问题描述】:
使用 S3 存储桶创建堆栈时,创建此堆栈时,我没有从 Cloudformation 获得输出。我错过了什么?
{
"Resources" : {
"S3BKT" : {
"Type" : "AWS::S3::Bucket",
"DeletionPolicy" : "Retain",
"Properties" : {
"AccessControl" : "PublicRead",
"WebsiteConfiguration" : {
"IndexDocument" : "index.html",
"ErrorDocument" : "error.html"
}
}
}
},
"Outputs" : {
"WebsiteURL" : {
"Value" : { "Fn::GetAtt" : [ "S3BKT", "WebsiteURL" ] },
"Description" : "URL for website hosted on S3"
}
}
}
【问题讨论】:
-
模板没有问题。您的问题必须来自其他地方。
标签: json amazon-cloudformation