Skip to content

Commit

Permalink
create new health check endpoint with the authorizer attached
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Dec 27, 2023
1 parent c196f0d commit 9202f29
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions services/app-api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9202f29

Please sign in to comment.