forked from theonestack/hl-component-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
s3.config.yaml
37 lines (35 loc) · 887 Bytes
/
s3.config.yaml
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
## Example bucket config
# buckets:
# normal-bucket:
# type: default
# create-only-bucket:
# bucket_name: ${EnvironmentName}.mybucket
# type: create_if_not_exists
# ssm_parameter: /app/my-create-only-bucket #creates a ssm parameter with bucket name
s3_custom_resources:
custom_policies:
s3:
action:
- s3:CreateBucket
- s3:DeleteBucket
- s3:PutBucketNotification
- s3:GetBucketLocation
- s3:PutBucketCors
- s3:GetBucketCors
- s3:ListBucket
resource: '*'
roles:
S3CustomResource:
policies_inline:
- cloudwatch-logs
- s3
functions:
S3BucketCreateOnlyCR:
code: s3_bucket.py
handler: s3_bucket.handler
runtime: python3.11
timeout: 5
role: S3CustomResource
environment:
ENVIRONMENT_NAME:
Ref: EnvironmentName