-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackaged.yaml
58 lines (56 loc) · 1.68 KB
/
packaged.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: 'omni-serverless
Sample SAM Template for omni-serverless
'
Globals:
Function:
Timeout: 5
Resources:
CuencaShippingFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://omni-serverless.cuenca.io/64b65d2f3f116974bbd59fc6eb214384
Handler: app.cuenca_shipping
Runtime: python3.7
Environment:
Variables:
MONGO_URI: mongodb://0.0.0.0:27017/
CORS_ORIGIN: http://0.0.0.0:9000
Events:
CuencaShipping:
Type: Api
Properties:
Path: /cuenca-shipping/address
Method: post
CuencaShippingCors:
Type: Api
Properties:
Path: /cuenca-shipping/address
Method: options
BotmakerMessageFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://omni-serverless.cuenca.io/a42dcc73f0519a51768522afdc413f5e
Handler: app.botmaker_message
Runtime: python3.7
Environment:
Variables:
MONGO_URI: mongodb://0.0.0.0:27017/
SANDBOX_MODE: false
SANDBOX_URL: https://example.com
Events:
CuencaShipping:
Type: Api
Properties:
Path: /botmaker/message
Method: post
Outputs:
CuencaShippingApi:
Description: Api Cuenca Shipping
Value:
Fn::Sub: https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/cuenca-shipping/address
BotmakerMessageApi:
Description: Api Botmaker Message
Value:
Fn::Sub: https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/botmaker/message