Skip to content

Add terraform to deploy Heir repo into GCE VM (GCP) - #129

Open
leocif wants to merge 14 commits into
google:mainfrom
leocif:feature/cloud
Open

leocif wants to merge 14 commits into
google:mainfrom
leocif:feature/cloud

Conversation

@leocif

@leocif leocif commented Aug 26, 2026

Copy link
Copy Markdown

Description

Adds Terraform Infrastructure-as-Code (IaC) and containerization configurations to deploy Google's HEIR compiler environment onto Google Cloud Platform (GCP) Compute Engine with physical NVIDIA GPU acceleration. This PR doesnt change any core functionality of the main heir repo, it is more like easy to deploy service for people to experiment or build upon it

What was added

  • VPC Networking Module (cloud/modules/vpc/): Provisioned a custom VPC with private subnets, Cloud Router, Cloud NAT for outbound internet connectivity, and restricted Google Identity-Aware Proxy (IAP) ingress firewall rules.
  • GCE GPU Instance & IAM Provisioning (cloud/main.tf): Configured a private GCE VM supporting configurable NVIDIA GPU accelerators (Tesla T4 / L4 / NVIDIA H100), automated startup scripts for NVIDIA drivers and Docker container runtime, and IAM bindings for secure IAP SSH access.
  • HEIR Containerization (cloud/Dockerfile): Added a multi-stage Docker build utilizing Bazelisk and an NVIDIA CUDA runtime to build and package heir-opt and heir-translate binaries.
  • Configuration & Documentation (cloud/README.md, cloud/terraform.tfvars.example): Added architecture documentation, variable input/output tables, and sample configuration templates for deployment.

How was this tested?

Manually verified the behavior in the development GCE VM with confidential and non confidential intances

if you want to test it

  1. Have a project with gpu quota
  2. Create a terraform.tfvars and copy the code in the example file
  3. fill the terraform.tfvars with the correct
  4. Terraform apply
  5. Follow the instructions in the readme ""## 🚀 How to Run and Deploy""

copybara-service Bot pushed a commit that referenced this pull request Sep 2, 2026
…ploy the HEIR compiler environment on Google Cloud Platform with GPU acceleration.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#129
PiperOrigin-RevId: 975374430
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant