Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To perform deployment on Apigee X we need to configure cloud account.

image-20240203-062026.png

On clicking the create button, we will get option to add the details.

image-20240203-061405.png

Note: 1. We can use either bearer token or service account key file, if both provided bearer token takes precedence over service account file.

2. Google token email option is only available for Apigee deploy.

Generate Service Account File

service account key file is the file associated with our GCP service cloud account. We can download this file from the GCP console.

image-20240202-134244.png

Please refer to the link for more information about Service Account and Service Account File.

https://cloud.google.com/iam/docs/keys-create-delete

https://medium.com/codeshakeio/introduction-to-service-accounts-on-google-cloud-platform-188e01ebd819

Generate Bearer Token

Access-token can be generated using the key file.

gcloud auth activate-service-account --key-file ${KEY_FILE}
e.g
gcloud auth activate-service-account --key-file "C:\\Users\\GCP\\demo-account-38555-c4605d668ba.json"

gcloud auth print-access-token

Note: We can use the --lifetime option on the gcloud auth print-access-token to set the expiration lifetime explicitly.

The default access token lifetime is 3600 seconds, but we can use this flag to reduce the lifetime or extend it up to 43200 seconds (12 hours).

Please refer to the link for more information.

https://developers.google.com/spectrum-access-system/guides/authorization-and-authentication

  • No labels