-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
65 lines (58 loc) · 1.83 KB
/
Copy pathserverless.yml
File metadata and controls
65 lines (58 loc) · 1.83 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
56
57
58
59
60
61
62
63
64
65
---
service: snowflake-external-functions
frameworkVersion: "3"
provider:
name: aws
# The S3 prefix under which deployed artifacts are stored (default: serverless)
deploymentPrefix: serverless
# Configure the S3 bucket used by Serverless Framework to deploy code packages to Lambda
deploymentBucket:
# Name of an existing bucket to use (default: created by serverless)
name: credmark.serverless.${self:provider.region}.${self:provider.stage}.deploys
# On deployment, serverless prunes artifacts older than this limit (default: 5)
maxPreviousDeploymentArtifacts: 10
stage: ${opt:stage, 'dev'}
region: ${opt:region, 'us-west-2'}
# Note: API Gateway has a maximum timeout of 30 seconds
timeout: 30
ecr:
# In this section you can define images that will be built locally and uploaded to ECR
images:
appimage:
path: ./
platform: linux/amd64 # Needs to be explicitly defined for building from an ARM based CPU (i.e. Apple Silicon Mac)
plugins:
- serverless-offline
functions:
to_signature:
image:
name: appimage
command: ["handlers.to_signature_handler"]
events:
- http:
path: /api/v1/abi/signature
method: POST
to_signature_hash:
image:
name: appimage
command: ["handlers.to_signature_hash_handler"]
events:
- http:
path: /api/v1/abi/signature_hash
method: POST
decode_contract_event:
image:
name: appimage
command: ["handlers.decode_contract_event_handler"]
events:
- http:
path: /api/v1/decode/decode_contract_event
method: POST
decode_contract_function:
image:
name: appimage
command: ["handlers.decode_contract_function_handler"]
events:
- http:
path: /api/v1/decode/decode_contract_function
method: POST