I am deploying to AWS, and everything seems fine. All my functions deploy. I can execute them using test. My main API can respond to an echo, so it’s working. Now i want to get a custom authorizer working. I set it up, but when it deploys no authorizer gets set in AWS. I am at a loss as to why, but clearly I am doing something wrong.
provider:
name: aws
runtime: python3.8
stage: dev
region: us-east-1
logs:
restApi: true
# you can add packaging information here
package:
individually: true
exclude:
- "*/**"
- "*"
functions:
APIAuth:
handler: mothership.API_Auth.lambda_handler
module: backend/serverless
package:
include:
- backend/serverless/**
APIDispatch:
handler: mothership.API_Dispatch.lambda_handler
module: backend/serverless
package:
include:
- backend/serverless/**
events:
- http: GET /
- http: 'GET {proxy+}'
- http: POST /
- http: 'POST {proxy+}'
authorizer:
name: APIAuth
resultTtlInSeconds: 0
identitySource: method.request.header.Authorization
type: token
AdapterAuth:
handler: adapter-auth-lambda/build/authapi
runtime: go1.x
package:
include:
- adapter-auth-lambda/build/**