Skip to main content

The Superblocks Terraform module for Google deploys the data plane as a Google Cloud Run service and configures all the required infrastructure to expose it to end users in Superblocks.

Deploy with Terraform

Follow the steps below to deploy the data plane on Google Cloud Run using Terraform.

Install prerequisites

Create Terraform file

To get started, navigate to the Setup Wizard to generate a superblocks_agent_key.
We recommend following secret management best practices such as using environment variables, encrypted files, or a secret store to securely pass the superblocks_agent_key into your Terraform code.
If you use the EU Superblocks instance, also set superblocks_agent_data_domain = “eu.superblocks.com”.
If you use Google Cloud DNS, find the zone_name for your domain by running gcloud dns managed-zones list --filter "dns_name ~ ${domain}. If you don’t use Google Cloud DNS, see the Custom Domain Mapping section for how you can manually configure the DNS for your agent.

Initialize and apply Terraform

For all available configuration options, see the Terraform registry.

Billable services

The Terraform module makes use of the following GCP services. Be aware of the pricing associated with these.
  • Cloud Run - Service to run the data plane container
  • Cloud DNS - Managed zone and record for DNS (optional)