Setting up - Amazon Comprehend

Setting up

Before you use Amazon Comprehend for the first time, complete the following tasks.

Sign up for AWS

When you sign up for Amazon Web Services (AWS), your AWS account is automatically signed up for all AWS services, including Amazon Comprehend. You are charged only for the services that you use.

With Amazon Comprehend, you pay only for the resources that you use. If you are a new AWS customer, you can get started with Amazon Comprehend for free. For more information, see AWS free usage tier.

If you already have an AWS account, skip to the next section.

To create an AWS account

  1. Open https://portal.aws.amazon.com/billing/signup.

  2. Follow the online instructions.

    Part of the sign-up procedure involves receiving a phone call and entering a verification code on the phone keypad.

Record your AWS account ID because you'll need it for the next task.

Create an IAM user

Services in AWS, such as Amazon Comprehend, require that you provide credentials when you access them. This allows the service to determine whether you have permissions to access the service's resources.

We strongly recommend that you access AWS using AWS Identity and Access Management (IAM), not the credentials for your AWS account. To use IAM to access AWS, create an IAM user, add the user to an IAM group with administrative permissions, and then grant administrative permissions to the IAM user. You can then access AWS using a special URL and the IAM user's credentials.

The Getting Started exercises in this guide assume that you have a user with administrator privileges, adminuser.

To create an administrator user and sign in to the console

  1. Create an administrator user called adminuser in your AWS account. For instructions, see Creating your first IAM user and administrators group in the IAM User Guide.

  2. Sign in to the AWS Management Console using a special URL. For more information, see How users sign in to Your Account in the IAM User Guide.

For more information about IAM, see the following:

Set up the AWS Command Line Interface (AWS CLI)

You don't need the AWS CLI to perform the steps in the Getting Started exercises. However, some of the other exercises in this guide do require it. If you prefer, you can skip this step and go to Getting started with Amazon Comprehend, and set up the AWS CLI later.

To set up the AWS CLI

  1. Download and configure the AWS CLI. For instructions, see the following topics in the AWS Command Line Interface User Guide:

  2. In the AWS CLI config file, add a named profile for the administrator user:.

    [profile adminuser] aws_access_key_id = adminuser access key ID aws_secret_access_key = adminuser secret access key region = aws-region

    You use this profile when executing the AWS CLI commands. For more information about named profiles, see Named profiles in the AWS Command Line Interface User Guide. For a list of AWS Regions, see Regions and endpoints in the Amazon Web Services General Reference.

  3. Verify the setup by typing the following help command at the command prompt:

    aws help