Skip to content

Commit 85f78ed

Browse files
authored
Update authorizer ARN (#188)
1 parent a56c444 commit 85f78ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DocumentsApi/serverless.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ functions:
5454
path: /{proxy+}
5555
method: ANY
5656
authorizer:
57-
arn: ${ssm:/platform-apis-lambda-authorizer-arn}
57+
arn: ${self:custom.authorizerArns.${opt:stage}}
5858
type: request
5959
resultTtlInSeconds: 0
6060
identitySource: method.request.header.Authorization
@@ -148,6 +148,10 @@ resources:
148148
- "arn:aws:s3:::${self:provider.environment.BUCKET_NAME}/*"
149149

150150
custom:
151+
authorizerArns:
152+
development: arn:aws:lambda:eu-west-2:859159924354:function:api-auth-verify-token-new-development-apiauthverifytokennew
153+
staging: arn:aws:lambda:eu-west-2:715003523189:function:api-auth-verify-token-new-staging-apiauthverifytokennew
154+
production: arn:aws:lambda:eu-west-2:153306643385:function:api-auth-verify-token-new-production-apiauthverifytokennew
151155
corsDomains:
152156
staging:
153157
- "https://*.hackney.gov.uk"

0 commit comments

Comments
 (0)