Skip to content

Commit 137242c

Browse files
committed
change in serverless
1 parent 45fd4b2 commit 137242c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

metering/serverless.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ functions:
5454
type: request
5555
arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
5656
identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
57-
name: sign_authorizer
57+
name: verify_authorizer
5858
# resultTtlInSeconds: 100
5959
cors:
6060
origin: ${self:custom.origin.${self:provider.stage}}
@@ -77,9 +77,6 @@ functions:
7777
subnetIds:
7878
- ${file(./config.${self:provider.stage}.json):VPC1}
7979
- ${file(./config.${self:provider.stage}.json):VPC2}
80-
# The following are a few example events you can configure
81-
# NOTE: Please make sure to change your handler code to work with those events
82-
# Check the event documentation for details
8380
events:
8481
- http:
8582
path: /usage/freecalls
@@ -88,7 +85,7 @@ functions:
8885
type: request
8986
arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
9087
identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
91-
name: sign_authorizer
88+
name: freecall_authorizer
9289
# resultTtlInSeconds: 100
9390
cors:
9491
origin: ${self:custom.origin.${self:provider.stage}}
@@ -110,9 +107,6 @@ functions:
110107
subnetIds:
111108
- ${file(./config.${self:provider.stage}.json):VPC1}
112109
- ${file(./config.${self:provider.stage}.json):VPC2}
113-
# The following are a few example events you can configure
114-
# NOTE: Please make sure to change your handler code to work with those events
115-
# Check the event documentation for details
116110
events:
117111
- http:
118112
path: /usage
@@ -121,7 +115,7 @@ functions:
121115
type: request
122116
arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
123117
identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
124-
name: sign_authorizer
118+
name: usage_authorizer
125119
# resultTtlInSeconds: 100
126120
cors:
127121
origin: ${self:custom.origin.${self:provider.stage}}

0 commit comments

Comments
 (0)