Skip to content

Commit 5d26ff2

Browse files
committed
added user address for usage and free calls
1 parent f86cbb6 commit 5d26ff2

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

metering/serverless.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
plugins:
2+
- serverless-offline
3+
- serverless-python-requirements
14

25
service: metering
36

@@ -35,14 +38,14 @@ package:
3538
functions:
3639
get-freecalls:
3740
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}
4649
# The following are a few example events you can configure
4750
# NOTE: Please make sure to change your handler code to work with those events
4851
# Check the event documentation for details
@@ -67,25 +70,25 @@ functions:
6770
- x-requested-with
6871
create-usage:
6972
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}
7881
# The following are a few example events you can configure
7982
# NOTE: Please make sure to change your handler code to work with those events
8083
# Check the event documentation for details
8184
events:
8285
- http:
8386
path: /usage
8487
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}
8992
cors:
9093
origin: ${self:custom.origin.${self:provider.stage}}
9194
headers:

0 commit comments

Comments
 (0)