Wrapper for the gcloud cli tool written in Rust.
Currently does nothing, hopefully soon it will do
-
create a JSON file based off your service account
-
connect to it with
gcloud auth activate-service-account <service-account>@cyderes-test.iam.gserviceaccount.com --key-file=/<path-to-json>/test.json --project=cyderes-test
-
connect to gcloud with the following command
gcloud auth application-default login
-
run the script
-
use the flags
-s, --secret Name of the secret to put into gcloud -- default value ""
-p, --profile Profile to use (test, dev, prod) -- default value ""
-l, --list list secrets in an account
Example command:
gcloud-rs -s test-secret -v test-secret-value -p test
will create a secret with a version with the value you provide with the --value
-v
flag