# GCP

This page documents the GCP-specific setup and supported resources for Cost Explorer (Gantt).

### Step 1: Add Your GCP Account

Cost Explorer (Gantt) requires your GCP account to be added to MechCloud. Follow the GCP onboarding guide to connect your account:

[Add GCP Account](/cloud-computing/add-an-account/gcp.md)

### Step 2: Configure Permissions

The service account used by Workload Identity Federation must have the following IAM roles on the project:

* **Compute Viewer** (`roles/compute.viewer`) — to read Compute Engine instances and disks
* **Cloud Asset Viewer** (`roles/cloudasset.viewer`) — to list and search project resources

### Step 3: Create a Resource Context

A Resource Context defines the logical boundary within which Stateless IaC and related visualizations operate. Follow the Resource Context setup guide:

[Resource Context](/cloud-computing/stateless-iac/resource-context.md)

### Step 4: Provision Infrastructure Using Stateless IaC

Once the GCP account and Resource Context are configured, infrastructure can be provisioned using Stateless IaC.

Follow the Stateless IaC authoring guide:

[Stateless IaC for GCP](/cloud-computing/stateless-iac/gcp.md)

### Supported Resources

See the [Supported Resources](/cloud-computing/cost-explorer/gcp/supported-resources.md) page for the complete list of GCP resource types supported by Cost Explorer.

### Demo

Coming soon.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mechcloud.io/cloud-computing/cost-explorer/gcp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
