cloudview
View instance information on EC2, Azure, GCE & OpenStack.
Support for other cloud service providers may be easily added thanks to Apache Libcloud
Docker image available at ghcr.io/ricardobranco777/cloudview:latest
Usage
Usage: cloudview [OPTIONS]
Options:
-c, --config FILE path to clouds.yaml
-l, --log debug|info|warning|error|critical
logging level
-o, --output none|text|html|json output type
-p, --port PORT run a web server on port PORT
-r, --reverse reverse sort
-s, --sort name|time|state sort type
-S, --states error|migrating|normal|paused|pending|rebooting|reconfiguring|running|starting|stopped|stopping|suspended|terminated|unknown|updating
filter by instance state
-T, --time TIME_FORMAT time format as used by strftime(3)
-V, --version show version and exit
-v, --verbose be verbose
--insecure insecure mode
Requirements
Docker or Podman to run the Docker image or:
- Python 3.8+ to run installed by pip
- Apache Libcloud
clouds.yaml
Edit examples/clouds.yaml with the relevant information and run chmod 600 /path/to/clouds.yaml.
NOTES:
- The key names are not arbitrary and are the names of the arguments passed to the class factory of each provider in libcloud.
- If this file is not present, cloudview will try to get the information from the standard
AWS_*,AZURE_*,GOOGLE_*&OS_environment variables.
To run stand-alone:
pip3 install --user cloudview
cloudview [OPTIONS]
To run with Docker or Podman:
docker run --rm [OPTIONS] -v /path/to/clouds.yaml:/clouds.yaml:ro ghcr.io/ricardobranco777/cloudview -c /clouds.yaml
NOTES:
- Make sure you also mount the path to the JSON file holding the GCE credentials with the same path mentioned in
clouds.yaml - For private Openstack you'd also want to mount the CA's certificates and add
-e REQUESTS_CA_BUNDLE=/path/to/certs.pem
Run the web server with Docker Compose:
If you have a TLS key pair, put the certificates in cert.pem, the private key in key.pem and the file containing the passphrase to the private key in key.txt. Then edit the docker-compose.yml file to mount the directory to /etc/nginx/ssl in the container like this: - "/path/to/tls:/etc/nginx/ssl:ro". Set and export the NGINX_HOST environment variable with the FQDN of your host.
For HTTP Basic Authentication, create a file named auth.htpasswd in the same directory with the TLS key pair.
If you don't have a TLS key pair, a self-signed certificate and a random password for logging in will be generated. You can see the latter with docker compose logs. The user is test.
After running docker compose build & docker compose up -d you can browse to https://localhost:8443
Debugging
- For debugging you can set the
LIBCLOUD_DEBUGenvironment variable to a path like/dev/stderr
Additional information
Similar projects
Metadata
Release files for cloudview 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cloudview-0.9.tar.gz | 14.4 kB | Without provenance | Details for cloudview-0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloudview-0.9-py3-none-any.whl | Python 3 | none | any | Details for cloudview-0.9-py3-none-any.whl |
Total release size: 31.3 kB
Release files / cloudview-0.9.tar.gz
| Download URL | cloudview-0.9.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16af0ffe60cf243dd641fdbca526394bc6c9900f051d53a7400ea967896ebe6f
|
|
BLAKE2b-256 checksum How to use checksums |
ad2f5243b3a8fffb37593cc64eb87120ad3bde7a9a235d9cd5611f62ccb83825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / cloudview-0.9-py3-none-any.whl
| Download URL | cloudview-0.9-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85c587c48b949e8040ba383b0a30ab1f0c7bfd7cdac3260b78cc2d9550774c34
|
|
BLAKE2b-256 checksum How to use checksums |
3655bb866aec66ade0e50a2fbcce36c9802f4a8eb934c9950b9ebb44a73e036a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for cloudview 0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.