-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
52 lines (44 loc) · 1.08 KB
/
serverless.yml
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
service: serverless-payment-razorpay
frameworkVersion: '3'
package:
individually: true
provider:
name: aws
runtime: nodejs16.x
architecture: arm64
stage: ${opt:stage, 'dev'}
region: ${opt:region, 'ap-south-1'}
memorySize: 128
logRetentionInDays: 1
httpApi:
cors: true
environment:
RAZORPAY_API_KEY: ${self:custom.payment.RAZORPAY_API_KEY}
RAZORPAY_API_SECRET: ${self:custom.payment.RAZORPAY_API_SECRET}
REDIRECT_URL: https://d2fbxq64uacgnr.cloudfront.net
custom:
payment: ${ssm:/aws/reference/secretsmanager/dev/payments}
serverless-offline:
httpPort: 3001
functions:
checkout:
handler: src/handlers/checkout.handler
events:
- httpApi:
path: /payments/checkout
method: post
verify:
handler: src/handlers/verify.handler
events:
- httpApi:
path: /payments/verify
method: post
context:
handler: src/handlers/context.handler
events:
- httpApi:
path: /payments/context
method: get
plugins:
- serverless-offline
- serverless-plugin-include-dependencies