From 844dc1a2689e583c91f019699677c7e529cfcbad Mon Sep 17 00:00:00 2001 From: Liudvikas Taluntis <43747286+Duslerke@users.noreply.github.com> Date: Thu, 14 May 2026 10:23:09 +0100 Subject: [PATCH 1/2] Switch to the Cognito authorizer on development environment. --- ContractsApi/serverless.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContractsApi/serverless.yml b/ContractsApi/serverless.yml index 4c8acde..b9267ca 100644 --- a/ContractsApi/serverless.yml +++ b/ContractsApi/serverless.yml @@ -134,7 +134,7 @@ resources: - 'table/Contracts/index/*' custom: authorizerArns: - development: arn:aws:lambda:eu-west-2:859159924354:function:api-auth-verify-token-new-development-apiauthverifytokennew + development: arn:aws:lambda:eu-west-2:859159924354:function:api-gateway-lambda-authorizer 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 pre-production: arn:aws:lambda:eu-west-2:578479666894:function:api-auth-verify-token-new-pre-production-apiauthverifytokennew From a86d4f8a6f708c18b7e5f12622a9727de2a97d0e Mon Sep 17 00:00:00 2001 From: Liudvikas Taluntis <43747286+Duslerke@users.noreply.github.com> Date: Thu, 14 May 2026 10:23:32 +0100 Subject: [PATCH 2/2] Switch to the Cognito authorizer on staging environment. --- ContractsApi/serverless.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContractsApi/serverless.yml b/ContractsApi/serverless.yml index b9267ca..595faf5 100644 --- a/ContractsApi/serverless.yml +++ b/ContractsApi/serverless.yml @@ -135,7 +135,7 @@ resources: custom: authorizerArns: development: arn:aws:lambda:eu-west-2:859159924354:function:api-gateway-lambda-authorizer - staging: arn:aws:lambda:eu-west-2:715003523189:function:api-auth-verify-token-new-staging-apiauthverifytokennew + staging: arn:aws:lambda:eu-west-2:715003523189:function:api-gateway-lambda-authorizer production: arn:aws:lambda:eu-west-2:153306643385:function:api-auth-verify-token-new-production-apiauthverifytokennew pre-production: arn:aws:lambda:eu-west-2:578479666894:function:api-auth-verify-token-new-pre-production-apiauthverifytokennew safeguards: