Connect Google Cloud Storage with VectorAmp's service account
Use this setup when VectorAmp asks you to grant a Google Cloud Storage bucket to a VectorAmp service account.
VectorAmp service account:
gdrive-ingestion@vectoramp-customer-ingestion.iam.gserviceaccount.com
What you need
- A Google Cloud project that owns the bucket.
- The bucket name.
- Optional: a prefix such as
docs/if VectorAmp should ingest only part of the bucket. - Permission to edit bucket IAM, or help from a Google Cloud administrator.
Grant bucket read access
-
Open the Google Cloud Storage Buckets page.
-
Select the Google Cloud project that contains your bucket.
-
Click the bucket you want VectorAmp to ingest.
-
Open the Permissions tab.
-
Click Grant access.
-
In New principals, paste:
gdrive-ingestion@vectoramp-customer-ingestion.iam.gserviceaccount.com -
In Assign roles, select Cloud Storage → Storage Object Viewer.
-
Click Save.
This allows VectorAmp to list and read objects in the bucket. It does not allow VectorAmp to write, edit, or delete objects.
Copy the bucket name
- Open the Cloud Storage Buckets page.
- Find your bucket in the table.
- Copy the value in the Name column.
- Paste that value into VectorAmp's Bucket field.
Example bucket name:
customer-documents-prod
Do not include gs:// in the bucket field.
Limit ingestion to a prefix
Use a prefix when VectorAmp should ingest only a folder-like path inside the bucket.
- Open your bucket in the Cloud Storage browser.
- Open the folder/prefix you want to ingest.
- Copy the path shown inside the bucket.
- Paste that path into VectorAmp's Prefix field.
Example:
docs/contracts/
Leave Prefix empty to ingest the whole bucket.
If your organization requires prefix-level access
Google Cloud Storage IAM is usually granted at the bucket level. If your organization requires narrower access, use IAM Conditions:
- Open the bucket's Permissions tab.
- Click Grant access.
- Add the VectorAmp service account as the principal.
- Select Storage Object Viewer.
- Click Add IAM condition.
- Name the condition, for example
VectorAmp docs prefix. - Use a condition that limits object names to your prefix.
- Save the condition and grant.
If you are unsure how to write the condition, ask your Google Cloud administrator. The simplest supported setup is bucket-level Storage Object Viewer plus a VectorAmp prefix filter.
Troubleshooting
VectorAmp cannot list objects
Check that:
- The service account has Storage Object Viewer on the bucket.
- The bucket name is entered without
gs://. - The prefix, if set, exactly matches the object path prefix.
- Your Google Cloud project policy allows granting access to external service accounts.
I cannot grant access
You need permission to edit bucket IAM, such as Storage Admin or Project IAM Admin. Ask your Google Cloud administrator to grant the VectorAmp service account Storage Object Viewer.
Fallback: use your own service account JSON
Use this only if your Google Cloud policy blocks granting bucket access to VectorAmp's service account.
Create a service account
- Open the Google Cloud Console service accounts page.
- Select the Google Cloud project that owns your bucket.
- Click Create service account.
- Enter a service account name, for example
vectoramp-gcs-ingestion. - Click Create and continue.
- In Grant this service account access to project, you can skip project-wide roles if you plan to grant access directly on the bucket.
- Click Continue.
- Click Done.
Grant the service account bucket read access
- Open the Cloud Storage Buckets page.
- Click the bucket you want VectorAmp to ingest.
- Open the Permissions tab.
- Click Grant access.
- In New principals, paste the service account email you just created.
- In Assign roles, select Cloud Storage → Storage Object Viewer.
- Click Save.
Create a JSON key
- Return to the Service accounts page.
- Click your service account.
- Open the Keys tab.
- Click Add key.
- Click Create new key.
- Select JSON.
- Click Create.
- Google downloads a
.jsonfile to your computer.
Treat this file like a password. Anyone with the file can read objects allowed by that service account.
Add it in VectorAmp
- In VectorAmp, choose Upload my own service account JSON.
- Drag/select the downloaded
.jsonkey file, or paste the full JSON contents. - Enter the bucket name.
- Optionally enter a prefix, such as
docs/contracts/. - Save the source.