
Demonstrate a React front end that authenticates users with Cognito, including register, confirm signup, and login flows, using a stored access token to access a protected home API.
Tools required to setup serverless framework for node.js in windows.
Configure the AWS CLI by creating an IAM user with administrator access, generating access keys, and running aws configure to set credentials, region, output, then verify with aws s3 ls.
Install the serverless framework, download the boilerplate for an AWS Node.js http api template, and examine serverless.yml to define lambda functions, events, and resources for an API gateway integration.
Deploy and test a REST API behind an API gateway that proxies requests to a Lambda handler, then learn to secure it with Cognito authentication and authorization.
Explore the resources created by deploying a service to AWS, including a Rest API gateway with proxy integration and a Lambda function, and test the endpoint while viewing CloudWatch logs.
Explore how Cognito user pools provide secure registration, sign-in, and access control, while user pool app clients interact with the pool to issue ID, access, and refresh tokens.
Configure a Cognito user pool named bookmarks and a matching app client in a serverless yml file, enabling email verification and email-as-username with password authentication, then deploy.
Set up a serverless api gateway endpoint to create a user in a Cognito user pool, configure the lambda handler, environment variables, and test the sign up endpoint.
Create an api gateway endpoint to confirm a Cognito user in the user pool via a serverless lambda using confirm sign up with client id, email, and code.
Implement a custom auth lambda for Cognito by installing aws jwt verify and configuring the user pool and client IDs, then deploy and test the authorizer.
Access the GitHub repository linked in the resources section, download it, and try it on your own account, then share your comments.
Set up the frontend for the Cognito auth app using React, install Bootstrap, React Router, and Axios, and begin building home, login, and register components.
Build a react register component styled with bootstrap, manage email and password state, and submit to an api gateway signup endpoint, while wiring a /register route for easy access.
In this course, you'll gain practical experience in creating, deploying, and testing REST APIs on AWS using Node.js, a popular server-side JavaScript runtime. We start by introducing the basics of AWS services, focusing on Amazon Cognito, where you’ll learn to configure a Cognito User Pool and Cognito App Client. This setup is crucial for managing user authentication and access control, ensuring that your application remains secure.
You will then move on to constructing REST APIs in Node.js, focusing on creating users and authenticating them within your application. A significant part of the course will involve writing and refining a serverless.yml file, which is central to deploying your APIs in a serverless environment on AWS. This file allows you to define your functions, resources, and permissions in a declarative manner, making deployment and management easier.
As you progress, you’ll integrate Cognito with your REST APIs to handle both authentication and authorization, ensuring that your APIs are secure and only accessible to authorized users. By the end of this course, you will have a solid understanding of how to build, deploy, and secure serverless REST APIs on AWS, using Node.js and the Serverless Framework. Looking forward to meeting you in this course.