The AWS CLI is required for accessing AWS services like DynamoDB and Cognito. Follow these steps to install and configure it.
Using Homebrew (Recommended):
brew install awscli
Using pip:
pip3 install awscli
Using pip:
pip3 install awscli
Using package manager (Ubuntu/Debian):
sudo apt-get update
sudo apt-get install awscli
Using MSI Installer:
Using pip:
pip install awscli
Configure AWS CLI with the zooly profile:
aws configure --profile zooly
You'll be prompted to enter:
us-east-1 (or your preferred region)json (recommended)Verify the configuration:
aws configure list --profile zooly
After installation and configuration, verify that AWS CLI is working correctly:
Verify DynamoDB access:
aws dynamodb list-tables --profile zooly
This should list available DynamoDB tables. If you see an error, check:
zooly profile is configured correctlyVerify 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.
Note: All AWS CLI commands in this project use the --profile zooly flag to ensure the correct credentials are used. Make sure to always include this flag when running AWS CLI commands.