Hey Folks, I am looking for some advice which help...
# help
h
Hey Folks, I am looking for some advice which helps to troubleshoot my issue as i am using lambda authorizer https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-controlling-access-to-apis-lambda-authorizer.html#se[…]api which is attached to authorization part of api gateway. • My problem is that with an HttpApi using a SAM template, it’s not invoking my lambda at all • I get no errors, it just says “Unauthorized” • and fails to invoke the lambda Please help me out as i stuck on this from last 4 days. Great Thanks! for your precious time
r
If you remove the authorizer altogether, does the target lambda get invoked?
t
Does HttpApi support lambda authorizer?
r
Yeah, it does
t
oooh for some reason I thought it did not
That is good to know
h
Thanks Ross! I just checked lambda invoked without authorizer
r
Ok, so that narrows it down. can you add some logging to the authorizer to see where it gets to? Are you returning an IAM policy in the authorizer?
h
Hi Ross, • regular lambda works • just doesn’t invoke my authorizer lambda
r
Ok, then it's probably a plumbing problem but not sure about how things work with SAM.