Skip to content

l22-io/CloudCommander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudCommander

Overview

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).

Features

  • 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.

Prerequisites

  • Python 3.x
  • Pip (for installing required libraries)
  • First run the script install_dependencies.py: python install_dependencies.py

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/CloudCommander.git
  2. Navigate to the project directory and install the required libraries:

    cd CloudCommander
    pip install -r requirements.txt

Configuration

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.

Usage

Execute the script:

python cloudcommander.py

Please note, that most subscripts can be used standalone as well.

Folder Structure

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.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss the proposed changes.

License

Apache 2.0

About

A CLI-tool written in Python to provide high level monitoring of the big 3 clouds (AWS, Azure, GCP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages