Skip to content

Commit 447f74a

Browse files
committedMay 5, 2024·
Formated configs
1 parent e6b2323 commit 447f74a

File tree

2 files changed

+19
-25
lines changed

2 files changed

+19
-25
lines changed
 

‎docker-compose.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3'
1+
version: "3"
22

33
services:
44
minio:
@@ -7,7 +7,7 @@ services:
77
- 9000:9000
88
- 9090:9090
99
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"
1313
command: minio server /data/minio --console-address ":9090"

‎serverless.yml

+15-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
service: readql
2-
frameworkVersion: '3'
3-
2+
frameworkVersion: "3"
43

54
provider:
65
name: aws
@@ -16,26 +15,24 @@ provider:
1615
ecr:
1716
images:
1817
readql:
19-
path: './'
18+
path: "./"
2019

2120
iam:
2221
role:
2322
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"
3230

3331
package:
3432
patterns:
35-
- '!./**'
36-
- './handler.py'
37-
- './readql/**'
38-
33+
- "!./**"
34+
- "./handler.py"
35+
- "./readql/**"
3936

4037
functions:
4138
readql:
@@ -45,33 +42,30 @@ functions:
4542
events:
4643
- httpApi:
4744
method: GET
48-
path: '/{proxy+}'
45+
path: "/{proxy+}"
4946
environment:
5047
READQL_S3_BUCKET_NAME: ${self:resources.Resources.bucket.Properties.BucketName}
51-
48+
5249
s3guard:
5350
handler: handler.s3guard
5451
timeout: 10
5552
memorySize: 128
5653
events:
5754
- s3:
5855
bucket: ${self:resources.Resources.bucket.Properties.BucketName}
59-
event: 's3:ObjectCreated:*'
56+
event: "s3:ObjectCreated:*"
6057
existing: true
6158
forceDeploy: true
6259

63-
6460
plugins:
6561
- serverless-python-requirements
6662

67-
6863
custom:
6964
pythonRequirements:
7065
noDeploy:
7166
- boto3
7267
- botocore
7368

74-
7569
resources:
7670
Resources:
7771
bucket:

0 commit comments

Comments
 (0)
Please sign in to comment.