8df32a93d2
Change-Id: Ib23ed500385c299247bf80062a7a4342f5afe1d2
37 lines
864 B
Plaintext
37 lines
864 B
Plaintext
{
|
|
"AWSTemplateFormatVersion" : "2010-09-09",
|
|
|
|
"Description" : "Template to test S3 Bucket resources",
|
|
|
|
"Resources" : {
|
|
"S3BucketWebsite" : {
|
|
"Type" : "AWS::S3::Bucket",
|
|
"Properties" : {
|
|
"AccessControl" : "PublicRead",
|
|
"WebsiteConfiguration" : {
|
|
"IndexDocument" : "index.html",
|
|
"ErrorDocument" : "error.html"
|
|
},
|
|
"DeletionPolicy" : "Delete"
|
|
}
|
|
},
|
|
"S3Bucket" : {
|
|
"Type" : "AWS::S3::Bucket",
|
|
"Properties" : {
|
|
"AccessControl" : "Private"
|
|
}
|
|
}
|
|
},
|
|
|
|
"Outputs" : {
|
|
"WebsiteURL" : {
|
|
"Value" : { "Fn::GetAtt" : [ "S3Bucket", "WebsiteURL" ] },
|
|
"Description" : "URL for website hosted on S3"
|
|
},
|
|
"DomainName" : {
|
|
"Value" : { "Fn::GetAtt" : [ "S3Bucket", "DomainName" ] },
|
|
"Description" : "Domain of S3 host"
|
|
}
|
|
}
|
|
}
|