-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths3.yml
62 lines (58 loc) · 1.48 KB
/
s3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
AWSTemplateFormatVersion: '2010-09-09'
Description: S3 Bucket for backop-backend
Resources:
ThumbnailBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: "backop-thumbnail-bucket"
AccelerateConfiguration:
AccelerationStatus: Enabled
CorsConfiguration:
CorsRules:
- AllowedHeaders:
- "*"
AllowedMethods:
- GET
- PUT
- POST
- HEAD
AllowedOrigins:
- "*"
ExposedHeaders:
- ETag
MaxAge: 3000
UploadBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: "backop-upload-bucket"
AccelerateConfiguration:
AccelerationStatus: Enabled
NotificationConfiguration:
EventBridgeConfiguration:
EventBridgeEnabled: true
CorsConfiguration:
CorsRules:
- AllowedHeaders:
- "*"
AllowedMethods:
- GET
- PUT
- POST
- HEAD
AllowedOrigins:
- "*"
ExposedHeaders:
- ETag
MaxAge: 3000
LifecycleConfiguration:
Rules:
- Id: "MoveToIntelligentTiering"
Status: Enabled
Transitions:
- StorageClass: INTELLIGENT_TIERING
TransitionInDays: 0
Outputs:
UploadBucket:
Value: !Ref UploadBucket
ThumbnailBucket:
Value: !Ref ThumbnailBucket