Simple example of configuring authorizer for Api Gateway HTTP endpoint. Can be used as a note.
- Clone or download
- Run
npm i - Run
pip install -r requirements.txt - Run
./deploy.sh <stage> <aws_profile>where:
<stage>- stage, which you want (for exampledev)<aws_profile>- profile, which you configured during serverless installation
After deploy you will see the url for your endpoint at the terminal,
which looks like: https://<API_ID>.execute-api.us-east-1.amazonaws.com/test. Try to send GET request and
you get 401 Error.
Here instructions to get tokens with aws cli.