File tree 2 files changed +19
-25
lines changed
2 files changed +19
-25
lines changed Original file line number Diff line number Diff line change 1
- version : ' 3 '
1
+ version : " 3 "
2
2
3
3
services :
4
4
minio :
@@ -7,7 +7,7 @@ services:
7
7
- 9000:9000
8
8
- 9090:9090
9
9
environment :
10
- MINIO_ROOT_USER : ' root'
11
- MINIO_ROOT_PASSWORD : ' password'
12
- MINIO_API_SELECT_PARQUET : ' on '
10
+ MINIO_ROOT_USER : " root"
11
+ MINIO_ROOT_PASSWORD : " password"
12
+ MINIO_API_SELECT_PARQUET : " on "
13
13
command : minio server /data/minio --console-address ":9090"
Original file line number Diff line number Diff line change 1
1
service : readql
2
- frameworkVersion : ' 3'
3
-
2
+ frameworkVersion : " 3"
4
3
5
4
provider :
6
5
name : aws
@@ -16,26 +15,24 @@ provider:
16
15
ecr :
17
16
images :
18
17
readql :
19
- path : ' ./ '
18
+ path : " ./ "
20
19
21
20
iam :
22
21
role :
23
22
statements :
24
- - Effect : ' Allow'
25
- Resource :
26
- - ' arn:aws:s3:::${self:resources.Resources.bucket.Properties.BucketName}/*'
27
- Action :
28
- - ' s3:GetObject'
29
- - ' s3:PutObject'
30
- - ' s3:DeleteObject'
31
-
23
+ - Effect : " Allow"
24
+ Resource :
25
+ - " arn:aws:s3:::${self:resources.Resources.bucket.Properties.BucketName}/*"
26
+ Action :
27
+ - " s3:GetObject"
28
+ - " s3:PutObject"
29
+ - " s3:DeleteObject"
32
30
33
31
package :
34
32
patterns :
35
- - ' !./**'
36
- - ' ./handler.py'
37
- - ' ./readql/**'
38
-
33
+ - " !./**"
34
+ - " ./handler.py"
35
+ - " ./readql/**"
39
36
40
37
functions :
41
38
readql :
@@ -45,33 +42,30 @@ functions:
45
42
events :
46
43
- httpApi :
47
44
method : GET
48
- path : ' /{proxy+}'
45
+ path : " /{proxy+}"
49
46
environment :
50
47
READQL_S3_BUCKET_NAME : ${self:resources.Resources.bucket.Properties.BucketName}
51
-
48
+
52
49
s3guard :
53
50
handler : handler.s3guard
54
51
timeout : 10
55
52
memorySize : 128
56
53
events :
57
54
- s3 :
58
55
bucket : ${self:resources.Resources.bucket.Properties.BucketName}
59
- event : ' s3:ObjectCreated:*'
56
+ event : " s3:ObjectCreated:*"
60
57
existing : true
61
58
forceDeploy : true
62
59
63
-
64
60
plugins :
65
61
- serverless-python-requirements
66
62
67
-
68
63
custom :
69
64
pythonRequirements :
70
65
noDeploy :
71
66
- boto3
72
67
- botocore
73
68
74
-
75
69
resources :
76
70
Resources :
77
71
bucket :
You can’t perform that action at this time.
0 commit comments