Google Cloud Platform
Local Komiser CLI (Single account)
Komiser now supports multiple cloud accounts by default. Account configuration is done through the config.toml
file, just pass in your account credentials as shown below.
We’ve also added 2 methods of persisting your account data.
Postgres
Add to config.toml file
postgres
and a database komiser
on the local Postgres server. SQLite
Configuring Credentials
To enable Komiser collecting your GCP resources, you need to have a Service Account setup with at least the following permissions:
storage.buckets.list
to list Bucketscompute.instances.list
to list VM instancesmonitoring.timeSeries.list
to allow for cost estimation of your Buckets
Create and download the Service Account as JSON from the GCP console and store it on your machine. Add the following configuration to your config.toml
:
The name
can be anything you want. You can use different names in the case you want to connect more than one GCP account.
Find your organizationId
by pressing on the gear icon next to your Organization name.
Run it!
That should be it. Try out the following from your command prompt to start the server:
Point your browser to http://localhost:3000
Local Komiser CLI (Multiple accounts)
Simply add more authentication blocks to the configuration file
Run with Docker
To expose the local Service Account file to the Docker container, run Komiser with following command:
where /path/to/serviceAccount.json
is the absolute path to the local file on your machine.
Your config.toml
should then look like this: