You can specify the BucketName as a property like so:
"Resources" : {
"bucketresource" : {
"Type" : "AWS::S3::Bucket",
"Properties" : {
"BucketName" : "stack-with-pictures"
}
}
}
Question
The docs here don't specify how to set the name of the bucket. Is it possible to do in a cfn template?
Solution
You can specify the BucketName as a property like so:
"Resources" : {
"bucketresource" : {
"Type" : "AWS::S3::Bucket",
"Properties" : {
"BucketName" : "stack-with-pictures"
}
}
}