Generate GCP JSON credentials
Creating a GCP JSON credentials is required to connect your GCP Account to PipeOps. The followings steps would highlight how to generate the JSON credentials to be securely uploaded on PipeOps platform.
-
Create a new Project or open an existing one
- Open the embedded Google shell
-
Run the following command in the Google Shell to create the service account and generate the json key
curl https://pub-950943fa1bc54978bed46ef104f9d81a.r2.dev/create_credentials_gcp.sh | \
bash -s -- $GOOGLE_CLOUD_PROJECT pipeops_role pipeops-service-accountYou can modify:
- the service account name by replacing pipeops-service-account by the name of your choice
- the role name by replacing pipeops_role by the role name of your choice
-
Once the script is finished, you will see the following message:
created key [xxxx] of type [json] as [key.json] for [pipeops-service-account@<your-project.iam.gserviceaccount.com]
Operations completed. You can now download your json key to upload in PipeOpsSo you can download it by clicking on the Download in the Cloud Terminal Shell window.
And specify the name of the file /your/home/key.json and click on Download.
Congratulations you have successfully created your GCP JSON credentials.