Installation¶
This guide covers different ways to install AWS Cloud Utilities v2.
Prerequisites¶
- Python 3.12 or higher
- AWS CLI configured with appropriate credentials
- pip package manager
Installation Methods¶
From PyPI (Recommended)¶
Coming Soon
PyPI installation will be available once the package is published.
From Source (Development)¶
For the latest features or development:
# Clone the repository
git clone https://github.com/jon-the-dev/aws-cloud-tools.git
cd aws-cloud-tools/v2
# Install in development mode
pip install -e .
Using the Development Script¶
For quick development setup:
This script will: - Create a virtual environment (if needed) - Install the package in development mode - Install development dependencies - Set up pre-commit hooks
Verify Installation¶
After installation, verify everything works:
# Check version
aws-cloud-utilities --version
# Get help
aws-cloud-utilities --help
# Test basic functionality
aws-cloud-utilities account info
Dependencies¶
The tool automatically installs these key dependencies:
- boto3: AWS SDK for Python
- click: Command-line interface framework
- rich: Rich text and beautiful formatting
- pydantic: Data validation and settings management
- python-dotenv: Environment variable management
- PyYAML: YAML file support
Development Dependencies¶
For development and testing:
This includes: - pytest: Testing framework - black: Code formatting - flake8: Code linting - mypy: Type checking - pre-commit: Git hooks
AWS Configuration¶
Ensure your AWS credentials are configured:
# Using AWS CLI
aws configure
# Or set environment variables
export AWS_ACCESS_KEY_ID=your-access-key
export AWS_SECRET_ACCESS_KEY=your-secret-key
export AWS_DEFAULT_REGION=us-east-1
Troubleshooting¶
Permission Issues¶
If you encounter permission errors:
# Use --user flag
pip install --user aws-cloud-utilities
# Or use virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install aws-cloud-utilities
Python Version Issues¶
Check your Python version:
If you have multiple Python versions:
AWS Credentials Issues¶
Test your AWS credentials:
If this fails, reconfigure your AWS credentials:
Next Steps¶
- Quick Start Guide - Get started with basic commands
- Configuration - Configure profiles and settings
- Command Reference - Explore available commands