> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amnify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting GCP

To scan your Google Cloud environment, you need to provide **Service Account** credentials with read-only access to the projects you want to monitor.

***

## Prerequisites

* A GCP account with permission to create Service Accounts
* At least one GCP project you want to scan
* The following ready:
  * A **Service Account** with the Viewer role
  * The Service Account's **JSON key file** or credentials

***

## Step 1: Create a Service Account

If you don't already have a dedicated Service Account:

1. Go to **Google Cloud Console → IAM & Admin → Service Accounts**
2. Click **Create Service Account**
3. Name it (e.g., "amnify-scanner")
4. Click **Create and Continue**

***

## Step 2: Assign the Viewer Role

1. In the **Grant this service account access** step, add the **Viewer** role
2. Click **Continue** and then **Done**

<Tip>
  The **Viewer** role provides the read-only access needed for security scanning. Amnify does not require write access to your GCP resources.
</Tip>

***

## Step 3: Create a Key

1. Open the Service Account you just created
2. Go to the **Keys** tab
3. Click **Add Key → Create new key**
4. Select **JSON** format
5. Click **Create** — the key file downloads automatically

***

## Step 4: Add the Integration in Amnify

1. Navigate to **Integrations** and click **Create integration**
2. Select **GCP** as the provider
3. Fill in the credentials from your Service Account key
4. Optionally set a **Display Name**
5. Click **Next**
6. Amnify discovers your projects — toggle on the ones you want to scan
7. Click **Finish**

***

## What Happens Next

Once connected, you can:

* [Run a scan](/cspm-deploy/security/scan-scheduling) against your GCP projects
* [Set up a schedule](/cspm-deploy/security/scan-scheduling#creating-a-schedule) for automatic scanning
* View results on the [Dashboard](/cspm-deploy/security/dashboard)

***

## Troubleshooting

| Issue                  | Cause                                | Solution                                                            |
| ---------------------- | ------------------------------------ | ------------------------------------------------------------------- |
| No projects discovered | Service Account lacks Viewer access  | Assign Viewer role on target projects                               |
| Authentication failed  | Invalid or expired key               | Create a new JSON key for the Service Account                       |
| Partial scan results   | Viewer role missing on some projects | Ensure the Service Account has Viewer access on all target projects |
