CloudCommander is a command-line tool designed for fetching and displaying virtual machine instance data across multiple cloud platforms: AWS, Azure, and Google Cloud Platform (GCP).
- Fetch virtual machine instance details such as instance ID and status.
- Supports AWS EC2, Azure VM, and Google Cloud Compute Engine.
- Unified command-line interface for multi-cloud management.
- Python 3.x
- Pip (for installing required libraries)
- First run the script install_dependencies.py:
python install_dependencies.py
-
Clone the repository:
git clone https://github.com/yourusername/CloudCommander.git
-
Navigate to the project directory and install the required libraries:
cd CloudCommander pip install -r requirements.txt
To communicate with each cloud platform, CloudCommander relies on SDKs and API client libraries. Ensure you've set up authentication credentials for:
-
AWS: Configure your credentials using the AWS CLI or by setting up
~/.aws/credentials
. -
Azure: Authenticate using the
DefaultAzureCredential
class which searches for available credentials within your environment. -
GCP: Set the
GOOGLE_APPLICATION_CREDENTIALS
environment variable pointing to your service account key JSON file.
Execute the script:
python cloudcommander.py
Please note, that most subscripts can be used standalone as well.
CloudCommander/
│
├── README.md
├── cloudcommander.py
├── checkcloud.py
├── install_dependencies.py
│
├── aws/
│ ├── __init__.py
│ └── aws_account_info.py
│
├── azure/
│ ├── __init__.py
│ └── azure_account_info.py
│
└── gcp/
├── __init__.py
└── gcp_account_info.py
The output will display the ID and status of instances for each cloud provider.
Pull requests are welcome. For major changes, please open an issue first to discuss the proposed changes.
Apache 2.0