Question

The docs here don't specify how to set the name of the bucket. Is it possible to do in a cfn template?

Was it helpful?

Solution

You can specify the BucketName as a property like so:

"Resources" : {
  "bucketresource" : {
    "Type" : "AWS::S3::Bucket",
    "Properties" : {
      "BucketName" : "stack-with-pictures"
    }
  }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top