How to Create an S3 Bucket With PublicRead in CloudFormation


AWSTemplateFormatVersion: 2010-09-09
Description: Basic S3 Bucket CloudFormation template

Resources:
  S3BucketForWebsiteContent:
    Type: AWS::S3::Bucket
    Properties:
      AccessControl: PublicRead

Outputs:
  BucketName:
    Value: !Ref S3BucketForWebsiteContent
    Description: Name of the newly created Amazon S3 Distribution