1
+ plugins :
2
+ - serverless-offline
3
+ - serverless-python-requirements
1
4
2
5
service : metering
3
6
@@ -35,14 +38,14 @@ package:
35
38
functions :
36
39
get-freecalls :
37
40
handler : handlers/freecall_handler.main
38
- # role: ${file(./config.${self:provider.stage}.json):ROLE}
39
- # vpc:
40
- # securityGroupIds:
41
- # - ${file(./config.${self:provider.stage}.json):SG1}
42
- # - ${file(./config.${self:provider.stage}.json):SG2}
43
- # subnetIds:
44
- # - ${file(./config.${self:provider.stage}.json):VPC1}
45
- # - ${file(./config.${self:provider.stage}.json):VPC2}
41
+ role : ${file(./config.${self:provider.stage}.json):ROLE}
42
+ vpc :
43
+ securityGroupIds :
44
+ - ${file(./config.${self:provider.stage}.json):SG1}
45
+ - ${file(./config.${self:provider.stage}.json):SG2}
46
+ subnetIds :
47
+ - ${file(./config.${self:provider.stage}.json):VPC1}
48
+ - ${file(./config.${self:provider.stage}.json):VPC2}
46
49
# The following are a few example events you can configure
47
50
# NOTE: Please make sure to change your handler code to work with those events
48
51
# Check the event documentation for details
@@ -67,25 +70,25 @@ functions:
67
70
- x-requested-with
68
71
create-usage :
69
72
handler : handlers.usage_handler.main
70
- # role: ${file(./config.${self:provider.stage}.json):ROLE}
71
- # vpc:
72
- # securityGroupIds:
73
- # - ${file(./config.${self:provider.stage}.json):SG1}
74
- # - ${file(./config.${self:provider.stage}.json):SG2}
75
- # subnetIds:
76
- # - ${file(./config.${self:provider.stage}.json):VPC1}
77
- # - ${file(./config.${self:provider.stage}.json):VPC2}
73
+ role : ${file(./config.${self:provider.stage}.json):ROLE}
74
+ vpc :
75
+ securityGroupIds :
76
+ - ${file(./config.${self:provider.stage}.json):SG1}
77
+ - ${file(./config.${self:provider.stage}.json):SG2}
78
+ subnetIds :
79
+ - ${file(./config.${self:provider.stage}.json):VPC1}
80
+ - ${file(./config.${self:provider.stage}.json):VPC2}
78
81
# The following are a few example events you can configure
79
82
# NOTE: Please make sure to change your handler code to work with those events
80
83
# Check the event documentation for details
81
84
events :
82
85
- http :
83
86
path : /usage
84
87
method : post
85
- # authorizer:
86
- # type: request
87
- # arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
88
- # identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
88
+ authorizer :
89
+ type : request
90
+ arn : ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
91
+ identitySource : ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
89
92
cors :
90
93
origin : ${self:custom.origin.${self:provider.stage}}
91
94
headers :
0 commit comments