Skip to main content

Set up GCP Integration

Automate TurboScale helps you to create a browser automation grid hosted on your GCP account. With this setup, you get a self-hosted, private and auto-scaling grid that supports browser automation testing at scale with on-demand resource consumption along with other tools to monitor the grid utilization.

Use this document if you want to set up a browser automation grid from scratch. This document explains the steps required to create a new dedicated service account and generate a key file with relevant permissions for the service account to create and manage a fully functional grid along with the entire setup on the cloud provider of your choice using BrowserStack CLI.

Setting up your GCP Account

Once you visit our setup guide, you can select the desired region to set up your automation grid on GCP. Once you’ve selected the region, you need to create a new service account and generate a key file in JSON format.

Important:
  • The prerequisite is to have a GCP account with Cloud Resource Manager API enabled.
  • The account should also have Project IAM Admin permission that allows you to create a new service account on your GCP Account.
  • Use the correct account where BrowserStack can create your automation grid and make use of relevant GCP services like GKE, Storage service, etc. for different grid-related functionalities.
  • The recommendation is to use the same GCP account where development or staging services are hosted.

Create Service Account

Once you’ve selected the region, you can start the process of creating a new service account on GCP using the GCP Template link.

You can download our GCP template and use the gcloud tool on your terminal to deploy this template on your GCP account using the below command. This template will create a service account in your GCP account with the desired permissions.

Command Line
gcloud deployment-manager deployments create turboscale-deployment --template /path/to/gcp-service-account-template.jinja
Note: This is just a service account template and it will not yet set up any compute resources in your GCP account.

Once the template is deployed and the service account is successfully created, you need to generate a JSON key file and download it on your local system. The steps to create this file are documented here.

You can now use this JSON key file with BrowserStack CLI to create and manage your grids.

Troubleshooting

Visibility on Resources

BrowserStack adds GCP tags whenever a new resource(Compute or Non-Compute) is being created as part of Automate TurboScale in your GCP account.

Tags are key-value pairs that you can use to view your GCP resources and identify, organize, or search for resources. Here is a list of tags added by BrowserStack on all the resources.

Tag Key Tag value
browserstack:managedBy BrowserStack
browserstack:service BrowserStack-Automate-TurboScale
browserstack:grid <grid name> used while creating a browser Automation Grid
browserstack:cluster <cluster name> used while creating a browser Automation Grid
browserstack:creationDate Epoch Timestamp of resource creation

Contact Us

Need help? Reach out to us here.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy