0

Situation:

I have an API hosted in AWS managed via serverless with node.js. Within, I have three environments in order to have development, testing, and production.

Therefore, each environment has the same lambdas, the same API Gateways, and kind of the same configuration in order to not affect my production environment and test the best while in testing and development (you all know how this goes).

The problem arises when my API gateway has been set as a trigger of my AWS Lambda (which actually works as an authorizer) in testing and production, but it was not set in development. I get the following error headers:

X-Cache:Error from cloudfront

x-amzn-ErrorType: AuthorizerConfigurationException

I verified a couple times and even copy pasted the code files for serverless configuration from testing to development to make sure I didn't mistyped, but the configuration is exactly the same.

I'm attaching the images of how it is supposed to look in all three environments, but development is just not. Any help would be appreciated!

 handler: path/to/handlerOfAuthorizer
 name: name-Of-Gateway-Authorizer-Lambda
 provisionedConcurrency: 1
 warmup:
 default:
 concurrency: 1
 enabled: true
 concurrencyAutoscaling:
 enabled: true
 maximum: 4
 minimum: 1
 usage: 0.85
 scaleInCooldown: 120
 scaleOutCooldown: 360```

API Gateway

Lambda organization

asked Nov 2, 2021 at 13:06
5
  • did you manually configured the stack or used the SAM template? Commented Nov 2, 2021 at 18:23
  • Hi @Ruben, SAM template was used. Commented Nov 2, 2021 at 21:17
  • Share your template Commented Nov 3, 2021 at 2:18
  • Just edited :) I added the code used to create the lambda Commented Nov 4, 2021 at 12:27
  • would it possible to get the response that you're getting from you authorizer? Refer here Commented Nov 5, 2021 at 16:16

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.