AWS Setup

Install and configure AWS CLI for accessing DynamoDB and Cognito services

The AWS CLI is required for accessing AWS services like DynamoDB and Cognito. Follow these steps to install and configure it.

Installation

macOS

Using Homebrew (Recommended):

brew install awscli

Using pip:

pip3 install awscli

Linux

Using pip:

pip3 install awscli

Using package manager (Ubuntu/Debian):

sudo apt-get update
sudo apt-get install awscli

Windows

Using MSI Installer:

  1. Download the AWS CLI MSI installer from AWS CLI Downloads
  2. Run the installer and follow the installation wizard
  3. Open a new Command Prompt or PowerShell window to use AWS CLI

Using pip:

pip install awscli

Configuration

  1. Configure AWS CLI with the zooly profile:

    aws configure --profile zooly

    You'll be prompted to enter:

    • AWS Access Key ID: Your AWS access key ID
    • AWS Secret Access Key: Your AWS secret access key
    • Default region name: us-east-1 (or your preferred region)
    • Default output format: json (recommended)
  2. Verify the configuration:

    aws configure list --profile zooly

Verification

After installation and configuration, verify that AWS CLI is working correctly:

  1. Verify DynamoDB access:

    aws dynamodb list-tables --profile zooly

    This should list available DynamoDB tables. If you see an error, check:

    • Your AWS credentials are correct
    • Your IAM user/role has DynamoDB permissions
    • The zooly profile is configured correctly
  2. Verify Cognito access:

    aws cognito-idp list-user-pools --max-results 10 --profile zooly

    This should list your Cognito User Pools. Ensure your credentials have Cognito permissions.