Hey you can create an S3 bucket using CloudFormation from CloudFormation Console or Even CLI.
If you want to create it via CloudFormation console here are the steps.
First open a notepad and copy below code into your editor,save it with .yaml extension.
AWSTemplateFormatVersion: 2010-09-09
Description: CloudFormation template for s3 bucket
Resources:
S3Bucket:
DeletionPolicy: Retain
Type: AWS::S3::Bucket
Description: Creating Amazon S3 bucket from CloudFormation
Properties:
BucketName: MyHardCodedBucket
Outputs:
S3Bucket:
Description: Bucket Created using this template.
Value: !Ref S3Bucket
Now when you have the file handy
- Open AWS management console and go to CloudFormation console.
- Click on Create Stack
- Upload your template
- Keep all the configuration as default and click next next
- Once the stack creation finishes,you can verify your bucket
This will fulfil your need of creating a simple s3 bucket.