Setting up of AWS Command Line

This section describes how to set up AWS Command Line Interface and dynamo-db.

Procedure:

  1. Download AWS CLI from here.
  2. From the installed location, configure aws by providing the details such as Access Key ID, Secret Access Key, Region and Output Format.
    EXAMPLE:

    $ aws configure

    AWS Access Key ID [None]:               EXAMPLEKEYID

    AWS Secret Access Key [None]:        EXAMPLEKEY

    Default region name [one]:                 us-west-2

    Default output format [None]:

    The configuration details are stored in config & credentials file under USERS directory.

  3. Download dynamo-db from here.
  4. From the installed location, execute the below command.
    java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb to launch dynamo-db.

    You can now access dynamo-db from AWS CLI.

    EXAMPLE:

    aws dynamodb list-tables

    aws dynamodb scan --table-name example-table-name


Bookmark Name Actions
Feedback
x