-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v16] Update gcp discovery docs with access scopes (#47639)
* Update gcp discovery docs with access scopes * Address comments
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,12 @@ discover instances. | |
your custom role. Click *Save*. | ||
|
||
![Role assignment](../../../../img/server-access/guides/gcp/[email protected]) | ||
|
||
If the Discovery Service will run in a GCP compute instance, edit the instance and | ||
assign the service account to the instance and set its access scopes to include | ||
Read Write access to the Compute API. | ||
|
||
![Service account assignment](../../../../img/server-access/guides/gcp/[email protected]) | ||
</TabItem> | ||
<TabItem label="gcloud"> | ||
Copy the following and paste it into a file called `teleport-discovery-role.yaml`: | ||
|
@@ -131,6 +137,14 @@ discover instances. | |
--member="serviceAccount:teleport-discovery@<Var name="project_id" />.iam.gserviceaccount.com" \ | ||
--role="projects/<Var name="project_id" />/roles/teleport_discovery" | ||
``` | ||
|
||
If the Discovery Service will run in a GCP compute instance, run the following command to | ||
add the service account to the instance: | ||
```code | ||
$ gcloud compute instances set-service-account <Var name="discovery_service_vm_name" description="Name of the instance running the Discovery Service" /> \ | ||
--service-account=teleport-discovery@<Var name="project_id" />.iam.gserviceaccount.com \ | ||
--scopes=default,compute-rw | ||
``` | ||
</TabItem> | ||
</Tabs> | ||
|
||
|