1. 程式人生 > >SaaS Identity and Isolation with Amazon Cognito

SaaS Identity and Isolation with Amazon Cognito

This Quick Start’s architecture includes a number of AWS services and constructs, to create a highly scalable, highly available SaaS identity and isolation solution that conforms to best practices for deploying a container-based application in a virtual private cloud (VPC) that spans two Availability Zones.

The SaaS reference application client is deployed using Amazon Simple Storage Service (Amazon S3). All of the assets of this AngularJS application are deployed to, and served from, an S3 bucket. The deployed web application interacts with the application’s back-end services through RESTful calls that are routed through Amazon API Gateway, supplying tenant identity context with each call.

API Gateway provides a natural way to expose your services in SaaS environments, allowing you to better meter and throttle access to your environment. It also supports a custom authorizer that can validate the system’s identity tokens on each attempt to access services. This authorizer is implemented as an AWS Lambda function that allows you to create custom authorization logic for requests as they flow though the gateway.

Within the VPC, the architecture employs network address translation (NAT) gateways deployed in separate Availability Zones. These gateways, which are hosted in the VPC’s public subnets, provide high availability routing of traffic that flows from your private subnets to other AWS services or to the Internet.

The core of the SaaS application’s services are hosted in the VPC’s private subnets. An Amazon ECS cluster hosts the containers that run the system’s microservices. Seven separate Node.js microservices are deployed in this cluster. This cluster also employs Auto Scaling for basic high availability. You can further tune this cluster to dynamically respond to changes in tenant load, scaling up and down based on demand. Each service applies the context of a tenant's identity to control and scope access to the system's resources.

The reference application uses a variety of AWS services; for example:

  • Amazon DynamoDB tables are provisioned in a multi-tenant model for services that require storage.
  • AWS Identity and Access Management (IAM) manages and applies isolation polices and roles to prevent cross-tenant access.
  • Amazon Cognito serves as the identity provider, storing attributes that identify each tenant.
  • Amazon Simple Notification Service (Amazon SNS) publishes validation emails during the user registration process.

The architecture also supports continuous deployment: It uses a combination of AWS CodePipeline, AWS CodeBuild, S3 buckets, and the Amazon EC2 Container Registry (Amazon ECR) to manage the build and deployment of new application features.

相關推薦

SaaS Identity and Isolation with Amazon Cognito

This Quick Start’s architecture includes a number of AWS services and constructs, to create a highly scalable, highly available SaaS identi

Sign Up and Confirm With Amazon Cognito User Pools Using C#

This post was authored by Tom Moore & Mike Morain, AWS Solutions Architects. With Amazon Cognito, you can add user sign-up and sign-in

Segmenting brain tissue using Apache MXNet with Amazon SageMaker and AWS Greengrass ML Inference

In Part 1 of this blog post, we demonstrated how to train and deploy neural networks to automatically segment brain tissue from an MRI scan in a s

Facebook Login Using AWS Amplify and Amazon Cognito

Set up auth with Facebook Login in our iOS appWe are now going to cloud-enable our mobile app by adding Facebook metdata to our info.plist, AWS Mobile SDK

In Using AWS Amplify and Amazon Cognito

Integrate the awsconfiguration.json file into your iOS projectWhen using the AWS Amplify CLI to provision backend resources, it produces a file called awsc

Tutorial for building a Web Application with Amazon S3, Lambda, DynamoDB and API Gateway

Tutorial for building a Web Application with Amazon S3, Lambda, DynamoDB and API GatewayI recently attended Serverless Day at the AWS Loft in downtown San

Save time and money by filtering faces during indexing with Amazon Rekognition

Amazon Rekognition is a deep-learning-based image and video analysis service that can identify objects, people, text, scenes, and activities, as w

How SimilarWeb analyze hundreds of terabytes of data every month with Amazon Athena and Upsolver

This is a guest post by Yossi Wasserman, a data collection & innovation team leader at Similar Web. SimilarWeb, in their own words: Si

Predictive Data Science with Amazon SageMaker and a Data Lake on AWS

This Quick Start builds a data lake environment for building, training, and deploying machine learning (ML) models with Amazon SageMaker on the Am

Continuous Delivery with Amazon EKS and Jenkins X

Amazon Elastic Container Service for Kubernetes (Amazon EKS) provides a container orchestration platform for building and deploying modern cloud a

Building a Data Processing Pipeline with Amazon Kinesis Data Streams and Kubeless

If you’re already running Kubernetes, FaaS (Functions as a Service) platforms on Kubernetes can help you leverage your existing investment in EC2

Amazon Cognito User Pools supports federation with SAML.

Last year, we launched SAML federation support for Amazon Cognito Identity. This feature enables you to get temporary scoped AWS credentials in ex

How Autodesk Increased Database Scalability and Reduced Replication Lag with Amazon Aurora

Autodesk is a leader in 3D design, engineering, and entertainment software. Autodesk makes software for people who make things. If you’ve

Machine Learning with Amazon SageMaker and Cloudwick

Cloudwick’s Machine Learning with Amazon SageMaker Platform on Amazon Web Services (AWS) helps developers and business users of all skillsets leve

How to Break a Monolith Application into Microservices with Amazon Elastic Container Service, Docker, and Amazon EC2

Traditional monolithic architectures are hard to scale. As an application's code base grows, it becomes complex to update and maintain.

Unified Service Discovery with Amazon ECS and Kubernetes

Starting today, you can leverage unified service discovery for services managed by Amazon Elastic Container Service (Amazon ECS)

How to Detect Analyze and Compare Faces with Amazon Rekognition

In this tutorial, you will learn how to use the face recognition features in Amazon Rekognition using the AWS Console. Amazon Rekognition is a d

圖書源代碼下載: Modern Differential Geometry of CURVES and SURFACES with Mathematica

light abs enter efi -c des pre diff -h http://alpha01.dm.unito.it/personalpages/abbena/gray/ Contents 1. Curves i

6-2 Verbs and Adjectives with that clauses

like lai cer difficult man ember examples hat ron 1 Many sentences in English contain two clauses: a main clause and a "that" clause.

[Bash] Move and Copy Files and Folders with Bash

can span index ear bsp ash you pan eve In this lesson we’ll learn how to move and rename files (mv) and copy (cp) them. Move in