Setting up DynamoDB (web service) - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Setting up DynamoDB (web service)

To use the Amazon DynamoDB web service:

  1. Sign up for Amazon.

  2. Get an Amazon access key (used to access DynamoDB programmatically).

    Note

    If you plan to interact with DynamoDB only through the Amazon Web Services Management Console, you don't need an Amazon access key, and you can skip ahead to Using the console.

  3. Configure your credentials (used to access DynamoDB programmatically).

Signing up for Amazon

To use the DynamoDB service, you must have an Amazon account. If you don't already have an account, you are prompted to create one when you sign up. You're not charged for any Amazon services that you sign up for unless you use them.

To sign up for Amazon
  1. Open https://portal.amazonaws.cn/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.

    When you sign up for an Amazon Web Services account, an Amazon Web Services account root user is created. The root user has access to all Amazon Web Services and resources in the account. As a security best practice, assign administrative access to an administrative user, and use only the root user to perform tasks that require root user access.

Getting an Amazon access key

Before you can access DynamoDB programmatically or through the Amazon Command Line Interface (Amazon CLI), you must have an Amazon access key. You don't need an access key if you plan to use the DynamoDB console only.

Users need programmatic access if they want to interact with Amazon outside of the Amazon Web Services Management Console. The Amazon APIs and the Amazon Command Line Interface require access keys. Whenever possible, create temporary credentials that consist of an access key ID, a secret access key, and a security token that indicates when the credentials expire.

To grant users programmatic access, choose one of the following options.

Which user needs programmatic access? To By
IAM Use short-term credentials to sign programmatic requests to the Amazon CLI or Amazon APIs (directly or by using the Amazon SDKs). Following the instructions in Using temporary credentials with Amazon resources in the IAM User Guide.
IAM Use long-term credentials to sign programmatic requests to the Amazon CLI or Amazon APIs (directly or by using the Amazon SDKs).

(Not recommended)

Following the instructions in Managing access keys for IAM users in the IAM User Guide.

Configuring your credentials

Before you can access DynamoDB programmatically or through the Amazon CLI, you must configure your credentials to enable authorization for your applications.

There are several ways to do this. For example, you can manually create the credentials file to store your access key ID and secret access key. You also can use the aws configure command of the Amazon CLI to automatically create the file. Alternatively, you can use environment variables. For more information about configuring your credentials, see the programming-specific Amazon SDK developer guide.

To install and configure the Amazon CLI, see Using the Amazon CLI.