Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I set name of an S3 bucket created in a cfn template?

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

like image 323
Fluffy Avatar asked Dec 15 '22 06:12

Fluffy


1 Answers

You can specify the BucketName as a property like so:

"Resources" : {
  "bucketresource" : {
    "Type" : "AWS::S3::Bucket",
    "Properties" : {
      "BucketName" : "stack-with-pictures"
    }
  }
}
like image 166
SBasir Avatar answered Feb 12 '23 17:02

SBasir