Beginner Tutorial


Amazon Cognito Setup Using AWS Cloudformation


10 minutes

Tags:

aws scripting iot
Learn Sumerian
Amazon Cognito Setup Using AWS Cloudformation

Tags

aws
scripting
iot

In this tutorial you will learn about:

Preparing your scene to access AWS

Amazon Sumerian provides tools to connect your scene with the cloud. The AWS tooling in Sumerian uses Amazon Cognito to provide credentials to your scene’s users. You use AWS CloudFormation to create and manage other AWS resources in a central and controlled way.

In this tutorial, you’ll learn how to create an AWS CloudFormation stack that has an Amazon Cognito Federated Identity pool that contains permissions for using functionality in your scene. You’ll enter the identifiers for the new Amazon Cognito identity pool to your scene configuration so that the scene will be ready for you to continue with one of the other AWS tutorials.

Prerequisites

Before you begin, be sure you are signed in to your AWS account

Step 1: Select a Template

In the following table, find the tutorial you are completing, and then choose Launch Stack.

Tutorial CreateStack Link
AWS IoT Thing Shadow and Script Actions
Using a Host and Speech Components (Amazon Polly)
Using the Dialogue Component and Amazon Lex to Build a Chatbot

Note: The stack for Amazon Lex can be used for both Speech and Dialogue Components.

Step 2: Create the CloudFormation Stack

After following a Launch Stack link, you’re prompted with an AWS CloudFormation Create Stack window.

  1. If you want to use a different name for the stack, change the name here.
  2. At the top of the page, change the region to one that is closest to where your customers will be, if necessary.
  3. Check the box that states I acknowledge that AWS CloudFormation might create IAM resources. The role that is created is used by your users to access tutorial resources.
  4. Choose Create to start creating the AWS CloudFormation stack.

Step 3: Gather collected AWS resource IDs

After creating the stack, the Stack Detail page appears. It can take a few minutes for the stack to be created and the status to change to CREATE_COMPLETE.

Now, open the Outputs section and note the Identifiers in the Value column. These are used in the Amazon Sumerian tutorial you are following.

Step 4: Configure the Amazon Cognito Identity Pool in Your Sumerian Scene

Now that the stack is created, you can configure the created AWS resources in your Sumerian scene.

  1. In the Entities panel, select the root, or scene, entity (in this case, IoT + Script Action Tutorial) to see the AWS Configuration component.
  2. Enter your Cognito Identity Pool ID.

Return to Your Tutorial

You have now created an AWS CloudFormation stack that contains an Amazon Cognito Federated Identity pool and other resources. You can use your browser’s back button to return to the AWS tutorial to complete additional steps in Amazon Sumerian.

You should now have a much better understanding of the AWS configuration component. To learn more, check out the following tutorial:

Back to Tutorials

© 2018 Amazon Web Services, Inc or its affiliates. All rights reserved.