Skip to main content

View instance information on all supported cloud providers

Project description

# cloudview
View instance information on all supported cloud providers

## Usage

```
Usage: cloudview [OPTIONS]
Options:
-a, --all show all instances
-o, --output text|html|json|JSON output type
-p, --port PORT run a web server on port PORT
-r, --reverse reverse sort
-s, --sort name|time|status sort type
-t, --time TIME_FORMAT time format as used by strftime(3)
-h, --help show this help message and exit
-d, --debug debug mode
-V, --version show version and exit
Filter options:
--filter-aws NAME VALUE may be specified multiple times
```

**NOTE**: Use `--output JSON` to dump _all_ available information received from each provider's SDK.

This script is best run with Docker to have all dependencies in just one packages, but it may be run stand-alone on systems with Python 3.4+

## To run stand-alone:

```
pip install --user cloudview
```

**NOTE**: You may need to upgrade `pip` before with `pip install --user --upgrade pip`.

## To run with Docker:

Build image with:
```
docker build -t cloud --pull .
```

Run with:
```
docker run --rm -v ~/.aws:/root/.aws:ro -v "$GOOGLE_APPLICATION_CREDENTIALS:$GOOGLE_APPLICATION_CREDENTIALS:ro" -e AZURE_TENANT_ID -e AZURE_SUBSCRIPTION_ID -e AZURE_CLIENT_SECRET -e AZURE_CLIENT_ID -e GOOGLE_APPLICATION_CREDENTIALS=/root/$(basename $GOOGLE_APPLICATION_CREDENTIALS) cloudview --all --port 7777
```

To set up a web server showing this information running on port 7777:
```
docker run --rm -d -p 7777:7777 -v ~/.aws:/root/.aws:ro -v "$GOOGLE_APPLICATION_CREDENTIALS:$GOOGLE_APPLICATION_CREDENTIALS:ro" -e AZURE_TENANT_ID -e AZURE_SUBSCRIPTION_ID -e AZURE_CLIENT_SECRET -e AZURE_CLIENT_ID -e GOOGLE_APPLICATION_CREDENTIALS cloudview --all --port 7777
```

## Run the web server with [Docker Compose](https://docs.docker.com/compose/install/):

```
docker-compose up -d
```

To stop the web server:
```
docker-compose down
```

To rebuild with latest version:
```
docker-compose build --pull
```

## TODO
- Search by tag
- Sort by instance type
- Use apache-libcloud?
- Expose filtering functionality


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudview-0.1.10.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

cloudview-0.1.10-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file cloudview-0.1.10.tar.gz.

File metadata

  • Download URL: cloudview-0.1.10.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for cloudview-0.1.10.tar.gz
Algorithm Hash digest
SHA256 025e40259790f5afeef4fba53a8f9d0f214efcb4bf815e187fbd70eae23dce97
MD5 58e28b6c486d9dfa4ecabf52b82a86b4
BLAKE2b-256 d45df31daae20dbea71287ddecc8dc8cfd866af031bf6662214d89e8f253d9df

See more details on using hashes here.

File details

Details for the file cloudview-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: cloudview-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for cloudview-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 aa9d2a87ece3b25bb55459b0c8dfb30830608f4d42fb85175ab5f222f9c3ee6e
MD5 e3e7f92630ce5cf8c95c3f412a459e7d
BLAKE2b-256 9b8489db8c3ba3f4a1d1302eed080fab57fad7ee190195a317de3b3cae8e1778

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page