Skip to content

Instantly share code, notes, and snippets.

@thanakijwanavit
Created January 3, 2021 09:38
Show Gist options
  • Save thanakijwanavit/ec1729d9e9a133009f4c60efe54e8ce1 to your computer and use it in GitHub Desktop.
Save thanakijwanavit/ec1729d9e9a133009f4c60efe54e8ce1 to your computer and use it in GitHub Desktop.
create an s3 bucket with acceleration
ProductS3:
Type: AWS::S3::Bucket
Properties:
AccelerateConfiguration:
AccelerationStatus: Enabled
BucketName: !Join [ "-" , ["product-bucket", !Ref BRANCH]]
CorsConfiguration:
CorsRules:
- AllowedMethods:
- GET
- POST
AllowedOrigins:
- '*'
VersioningConfiguration:
Status: Enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment