diff --git a/EqualityInformationApi/serverless.yml b/EqualityInformationApi/serverless.yml index 9c604f7..45c870e 100644 --- a/EqualityInformationApi/serverless.yml +++ b/EqualityInformationApi/serverless.yml @@ -29,7 +29,8 @@ functions: path: /{proxy+} method: ANY authorizer: - arn: ${ssm:/api-authenticator/${self:provider.stage}/arn} + arn: ${self:custom.authorizerArns.${opt:stage}} + type: request resultTtlInSeconds: 0 identitySource: method.request.header.Authorization @@ -183,6 +184,10 @@ resources: DurationInSeconds: 0 custom: + authorizerArns: + development: arn:aws:lambda:eu-west-2:859159924354:function:api-auth-verify-token-new-development-apiauthverifytokennew + staging: arn:aws:lambda:eu-west-2:715003523189:function:api-auth-verify-token-new-staging-apiauthverifytokennew + production: arn:aws:lambda:eu-west-2:153306643385:function:api-auth-verify-token-new-production-apiauthverifytokennew safeguards: - title: Require authorizer safeguard: require-authorizer