-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.yaml
More file actions
58 lines (54 loc) · 1.58 KB
/
template.yaml
File metadata and controls
58 lines (54 loc) · 1.58 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
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: cuenca_shipping/
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: botmaker_message/
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: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/cuenca-shipping/address"
BotmakerMessageApi:
Description: "Api Botmaker Message"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/botmaker/message"