-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
73 lines (68 loc) · 2.33 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
service: trb-checkout
provider:
name: aws
region: '${opt:region, ''us-east-1''}'
runtime: nodejs12.x
stage: '${opt:stage, ''stg''}'
tags:
business-unit: tribunapr
project: checkout
application: ${self:service}
stage: ${self:provider.stage}
deploymentBucket:
name: 'assembler-${self:provider.stage}'
# plugins:
# - serverless-plugin-warmup
# - serverless-offline
# custom:
# # Enable warmup on all functions (only for production and staging)
# warmup:
# - production
# - staging
functions:
app:
description: "Checkout | Integrações com gateways de pagamento"
handler: dist/lambda.handler
memorySize: 1024
timeout: 30
vpc: ${file(./config/serverless/stage/${self:provider.stage}.yml):VPC}
environment:
ENV: ${self:provider.stage}
STAGE: ${self:provider.stage}
DB_HOST: ${file(./config/serverless/stage/${self:provider.stage}.yml):DB_HOST}
DB_NAME: ${file(./config/serverless/stage/${self:provider.stage}.yml):DB_NAME}
DB_PASS: ${file(./config/serverless/stage/${self:provider.stage}.yml):DB_PASS}
DB_USER: ${file(./config/serverless/stage/${self:provider.stage}.yml):DB_USER}
COOKIE_SESSION_SECRET: ${file(./config/serverless/stage/${self:provider.stage}.yml):COOKIE_SESSION_SECRET}
PAGSEGURO_EMAIL: ${file(./config/serverless/stage/${self:provider.stage}.yml):PAGSEGURO_EMAIL}
PAGSEGURO_TOKEN: ${file(./config/serverless/stage/${self:provider.stage}.yml):PAGSEGURO_TOKEN}
MERCADOPAGO_ACCESS_TOKEN: ${file(./config/serverless/stage/${self:provider.stage}.yml):MERCADOPAGO_ACCESS_TOKEN}
PICPAY_TOKEN: ${file(./config/serverless/stage/${self:provider.stage}.yml):PICPAY_TOKEN}
PICPAY_SELLER_TOKEN: ${file(./config/serverless/stage/${self:provider.stage}.yml):PICPAY_SELLER_TOKEN}
RECAPTCHA_SECRET_KEY:
RECAPTCHA_MINIMUM_SCORE: 0.5
events:
- http:
method: any
path: /{any+}
cors:
origin: '*'
allowCredentials: true
headers:
- Authorization
- Content-Type
- X-Amz-Date
- X-Amz-Security-Token
package:
excludeDevDependencies: true
exclude:
- '*'
- .idea/**
- .vscode/**
- config/**
- src/**
- bin/**
- coverage/**
- temp/**
- test/**
- docker/**