-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathserverless.yml
More file actions
55 lines (52 loc) · 1.11 KB
/
serverless.yml
File metadata and controls
55 lines (52 loc) · 1.11 KB
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
service: go-crud-postgres
frameworkVersion: '3'
provider:
name: aws
runtime: go1.x
timeout: 2
memorySize: 512
region: ap-southeast-1
environment:
S3_BUCKET: "images-dev-serverlessdeploymentbucket-*"
IMAGE_BLOG: "image-blog/"
ROLE: "images-dev-ap-southeast-1-lambdaRole"
DB_USER: "postgres"
DB_PASS: "qojse3-suwkub-tesKox"
DB_HOST: "simpson.cd5ykwloyirn.ap-southeast-1.rds.amazonaws.com"
DB_PORT: 5432
DB_SERVICE: "postgres"
DB_SCHEMA: "public"
IS_DEBUG_SQL: true
package:
patterns:
- '!./**'
- ./bin/**
functions:
create:
handler: bin/create
description: create new user
events:
- http:
path: /create
method: post
delete:
handler: bin/delete
description: delete user by id
events:
- http:
path: /delete
method: post
read:
handler: bin/read
description: get user detail by id
events:
- http:
path: /read
method: get
update:
handler: bin/update
description: update user by id
events:
- http:
path: /update
method: post