I'm trying to connect to GCP and getting an "airflow.exceptions.AirflowException: Scope should be defined when using key JSON" error

The Google API requires a scope, even if that scope is the entire platform. f you’re not scoping to a specific service, you can just put in https://www.googleapis.com/auth/cloud-platform, which tells google that this user can access any service on the cloud platform.

More information on scopes can be found here: https://developers.google.com/identity/protocols/googlescopes

1 Like