Quick start - Run CLI using Cargo 🦀

This quick start will show the impacts of your EC2 instances for 10 hours of use, by building a local version of the cloud-scanner CLI from source.

Prerequisites

Compile an run CLI 💻

  1. Clone the cloud-scanner repository
  2. build and run CLI
# Ensure you have a working AWS profile setup locally (like you would do for AWS CLI)
export AWS_PROFILE='<YOUR_PROFILE_NAME>'

# Get impacts of 10 hours of use (on your default account region)
cargo run estimate --use-duration-hours 10 | jq

# Same thing but as metrics
cargo run -- --as-metrics estimate --use-duration-hours 10

# Same query for explicit region
cargo run -- --aws-region eu-west-3 estimate --use-duration-hours 10 | jq