Files
teleport/docs/pages/includes/database-access/cloudsql_service_credentials.mdx
T
STeve (Xin) Huang b043372f40 [docs] GCP MySQL IAM authentication support (#38943)
* [docs] GCP MySQL IAM authentication support

* review comments

* remove legacy OTP flow

* address review comments
2024-03-07 20:40:15 +00:00

15 lines
685 B
Plaintext

The Teleport Database Service must have credentials for the
`teleport-db-service` GCP service account we created in step 3.
If the Teleport Database Service is hosted on a VM, you can [change the
attached service
account](https://cloud.google.com/compute/docs/instances/change-service-account).
Alternatively, set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable to
point to the JSON credentials file you downloaded earlier. If you are using
`systemd` to start `teleport`, then you should edit the service's
`EnvironmentFile` to include the following env var:
```code
$ echo 'GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json' | sudo tee -a /etc/default/teleport
```