An Op that facilitates the management of CloudSQL instances in GCP (Google Cloud Platform).
A GCP Service Account is required to use this Op. The following predefined roles are required for all of the features in this Op to function as expected:
Please refer to this URL for instructions on how to create a service account with the above mentioned permissions. Once created, you will need to also generate a private key for the respective service account and download it to your computer (JSON). When ready, run the following command to save the credentials as a secret in your Ops team, replacing
ops secrets:set -k GOOGLE_APPLICATION_CREDENTIALS -v "$(cat <key_file> | tr -d '\n')"
ops run cloudsql
/ops run cloudsql
1. Clone the repo:
git clone <git url>
2. Navigate into the directory and install dependencies:
3. Run the Op from your current working directory with:
ops run . --build
See the Contributing Docs for more information