Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v16] Update gcp discovery docs with access scopes #47639

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/server-access/guides/gcp/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down Expand Up @@ -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>

Expand Down
Loading