If authentication is already set up you don't need to do anything, as Google Application Default Credentials (ADC) resolution mechanism will find the appropriate credentials in the default location.
You can also use environment variables or Google Secret Manager.
Create a jar file with the sbt assembly
command from the directory containing
the build.sbt
file. A jar file will be generated in the /target/scala-2.12/
directory.
To run the jar use the following command to display the help text:
java -jar target/scala-2.12/ot-conversion-format.jar --help
export GOOGLE_APPLICATION_CREDENTIALS="<path to secret key json file>"
- If you don't already have authorisation set-up, create a new Key on an appropriate service account and save that json file locally.
- Add that key to GCP Secret Manager
- Run
gcloud auth login --update-adc
to configure local account to use Secret Manager keys.
- Scala XML
- Scopt: Used to generate the command line interface.
- GCP Java APIs
- ResourceManager - Centrally manage all your projects, IAM, and resource containers.
- Storage - GCP storage