Protect API Gateway Endpoint Using Amazon Cognito
In this lab, you’ll practice configuring an API Gateway with Cognito authorizers. When you’re finished with this lab, you’ll have a good understanding of setting up Cognito user pool authorizers to control API Gateway access.
Terms and conditions apply.
Lab info
Lab author
Challenge
Review the Existing Amazon API Gateway
You’ll review and test the existing Amazon API Gateway endpoints in the provided account.
Challenge
Create a User Pool in Amazon Cognito
You’ll learn to create and configure a user pool in Amazon Cognito.
Challenge
Create a New Cognito User Pool Authorizer on the API Gateway
You’ll learn to create a new Cognito user pool authorizer on the API Gateway. You’ll also test the API Gateway endpoint.
Challenge
Test the API Gateway Endpoint Using Valid Credentials
You’ll learn to create a user in the Cognito user pool, and will then test the API using the credentials.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- Basic understanding of Identity and Access Management (IAM).
- Basic understanding of Amazon API Gateway.
- Basic understanding of using a Linux command prompt, and the AWS CLI.
- Basic understanding of JavaScript, jQuery, AWS SDK 2.x, and Amazon Cognito Identity SDK.