From 9202f29754ada9f233684a80ee2412ff6f191757 Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Wed, 27 Dec 2023 11:22:33 -0500 Subject: [PATCH] create new health check endpoint with the authorizer attached --- services/app-api/serverless.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/services/app-api/serverless.yml b/services/app-api/serverless.yml index 6798330ec2..2004947f0f 100644 --- a/services/app-api/serverless.yml +++ b/services/app-api/serverless.yml @@ -163,18 +163,17 @@ functions: third_party_api_authorizer: handler: src/handlers/third_party_API_authorizer.main - # TODO: create an entry point that uses the authorizer for testing purposes - # health: - # handler: src/handlers/health_check.main - # events: - # - http: - # path: health_check - # method: get - # cors: true - # authorizer: - # name: third_party_api_authorizer - # identitySource: method.request.header.Authorization - # resultTtlInSeconds: 3600 # cache the result for 1 hour + jwthealth: + handler: src/handlers/health_check.main + events: + - http: + path: health_check + method: get + cors: true + authorizer: + name: third_party_api_authorizer + identitySource: method.request.header.Authorization + resultTtlInSeconds: 3600 # cache the result for 1 hour otel: handler: src/handlers/otel_proxy.main