Created
November 24, 2020 04:11
-
-
Save thanakijwanavit/58e4e1f8a01ed3dfec27e5d3124a2eff to your computer and use it in GitHub Desktop.
cors configuration for sam and cloudformation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: CORS example | |
| Resources: | |
| S3Bucket: | |
| Type: "AWS::S3::Bucket" | |
| Properties: | |
| CorsConfiguration: | |
| CorsRules: | |
| - | |
| AllowedOrigins: | |
| - "*" | |
| AllowedMethods: | |
| - POST | |
| - GET | |
| - PUT | |
| - DELETE | |
| - HEAD | |
| AllowedHeaders: | |
| - "*" | |
| Outputs: | |
| BucketName: | |
| Description: Video storage bucket | |
| Value: !GetAtt S3Bucket.Arn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment