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
- Install Terraform
- Install and authorize the gcloud CLI
Create Terraform file
To get started, navigate to the Setup Wizard to generate asuperblocks_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”.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.

