skip to Main Content

Result of trying to save after adding Authorizer
I keep getting "Network Failure" whenever I try to make certain changes with API Gateway. I can create new APIs, add methods, connect Lambdas to them, and deploy but I cannot enable or make changes to CORS or add Cognito Authorization to any methods. Has anyone else encountered this?

I created a new API, lambdas, and a new user pool on my region (us-west-1) and also on (us-west-2) and tried to add Authorization to the API methods but kept getting Network Failure. Connection between lambdas and API methods works and so does the Cognito UI login but I just can’t add authorization. I was able to on Tuesday, 4 days ago but since Wednesday I’ve just been getting Network Failure.

2

Answers


  1. Chosen as BEST ANSWER

    I figured out it was just some super annoying bug that was preventing me from making any edits to Gateway API components. I.e. can't add headers to integration response so I had to delete it and add it in the wizard, can't add headers or auth to resources, etc...

    Thank you! @Muhammad Farhan


  2. Save your code for your api function locally.
    Then download the Sam Template CLI here
    https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli.html

    Then create your https api using the cli.
    Add your cognito authorizer in the Sam template as seen here.
    https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-api-cognitoauthorizer.html

    Configuring implementations like your building can be complicated when manually configuring.

    Use Sam Templates and the cli!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search