Build and monitor a secure Serverless app powered by AspNetCore WebApp with Amazon Cognito and AWS X-Ray
In this workshop, you'll deploy a serverless web application based on AspNetCore that leverages the Amazon Cognito Hosted UI for sign-up and sign-in. During the sign-in process, the AspNetCore application receives an identity token from Amazon Cognito, which is processed by the standard DotNetCore OpenIdConnect library. The AspNetCore WebApp will interface with a serverless DotNet backend via a RESTful web service call. The erverless DotNet backend is exposed via Amazon API Gateway. Its authentication expects the same identity token of the signed-in user who logged into the AspNetCore WebApp, hence providing authentication enforcement and seamless integration with Amazon Cognito.
See the diagram below for a depiction of the complete architecture.
A laptop with Wi-Fi running Microsoft Windows or Mac OS X with the following software installed:
- Visual Studio Code (its installation is covered during Lab 0)
- An Internet browser such as Chrome, Firefox, Safari, or Edge.
- Ability to SSH with port forwarding (ssh or Putty)
- Ability to create AWS resources including EC2, Amazon Cognito, AWS Lambda, Amazon Api Gateway, Amazon S3 and IAM Roles.
- Amazon EC2 key pair created in the AWS region you are working on. Learn how to create a key pair
Follow the modules to configure and deploy the AspNetCore application to AWS successfully.