Retool is a low-code platform for building internal apps from different data sources. It can also be self-hosted for compliance and on-premises purposes. Deploy a single, self-hosted Retool instance with automated install on a VM in Google Cloud.
This is a self-contained instance with all required services and database on the VM. This can be further expanded upon to host Retool services on Google Kubernetes Engine and the database on Cloud SQL.
Create a tfvars file using the minimum example below.
project_id = "your-gcp-project-id"
retool_version = "2.99.5"
retool_license_key = "your-license-key"
retool_domain = "retool.yourcompany.com"
A list of Retool version numbers can be viewed at https://docs.retool.com/docs/self-hosted-release-notes. Obtain your license key from https://my.retool.com.
# initialize directory
terraform init
# preview changes
terraform plan
# provision infrastructure
terraform apply
Create an A record pointing to the external IP of your Retool instance.
This code is provided "as is" with no warranty. It is intended to be a starting point for getting started with a self-hosted Retool instance.
Always store your Terraform state remotely and follow best practices for cloud security.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.