AWSTemplateFormatVersion: '2010-09-09'
Resources:
todoS3:
Type: AWS::S3::Bucket
Properties:
CorsConfiguration:
CorsRules:
- AllowedHeaders: ['*']
AllowedMethods: ['GET','PUT','POST','HEAD','DELETE']
AllowedOrigins: ['*']
Id: 's3CorsRule'
MaxAge: '3000'
Outputs:
s3Name:
Value: !Ref todoS3
참고: https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html