# GCP

Discover Google Cloud resources with Teleport and access them from a beam.

## How it works

The Teleport Discovery Service uses Google Cloud IAM permissions to find supported resources, such as Compute Engine instances and Cloud SQL databases. It searches the projects and locations you configure, using resource labels to narrow what it discovers. Enrollment then makes the matching resources available in Teleport.

A beam uses its delegated Teleport roles to connect to enrolled resources through the relevant Teleport service. The beam doesn't need the Google Cloud IAM permissions used for discovery.

<!-- illustration
id: beam-gcp-discovery
style: docs-isometric
type: static
title: From Google Cloud discovery to beam access
description: Teleport discovers matching resources separately from the connections a beam makes.

Show two labelled flows. In Discovery, matching Google Cloud resources flow from Google Cloud APIs through the Teleport Discovery Service into the Teleport resource catalog. In Access, the Beams runtime uses delegated roles and connects through a Teleport access service to an enrolled Google Cloud resource. Both flows run in reading order. Do not draw a beam querying the cloud APIs or sending traffic through the Discovery Service.
-->

## Set up discovery

See [Teleport Auto-Discovery](https://goteleport.com/docs/enroll-resources/auto-discovery/) for IAM, agent setup, and enrollment instructions for each Google Cloud resource type.
