In the previous chapters, we saw many AWS services that can be used for building serverless applications. In this chapter, we will explore some general practices and patterns that involve one or more of those AWS services. We have been using AWS CLI APIs and Java Lambdas until now. Services such as API Gateway and Cognito generally interact mostly with UI components and hence we will discuss their use with the JavaScript SDKs. We will also enable and use CORS, and then test our JavaScript SDK code from a browser using CodePen.
Furthermore, we will see how to create a federated identity with Cognito. We did not try this recipe in Chapter 4, Application Security with Amazon Cognito, as federated identity requires a valid domain name. We registered a domain name in Chapter 5, Web Hosting with S3, Route53, and CloudFront. We will then discuss a pattern called the fan...