Use when deploying Genkit applications to production with Terraform. Trigger with phrases like "deploy genkit terraform", "provision genkit infrastructure", "firebase functions terraform", "cloud run deployment", or "genkit production infrastructure". Provisions Firebase Functions, Cloud Run services, GKE clusters, monitoring dashboards, and CI/CD for AI workflows.
This skill is limited to using the following tools:
scripts/init-terraform.shBefore using this skill, ensure:
Firebase Functions:
# {baseDir}/terraform/functions.tf
resource "google_cloudfunctions2_function" "genkit_function" {
name = "genkit-ai-flow"
location = var.region
build_config {
runtime = "nodejs20"
entry_point = "genkitFlow"
}
service_config {
max_instance_count = 100
available_memory = "512Mi"
timeout_seconds = 300
}
}
Cloud Run Service:
resource "google_cloud_run_v2_service" "genkit_service" {
name = "genkit-api"
location = var.region
template {
scaling {
min_instance_count = 1
max_instance_count = 10
}
containers {
image = "gcr.io/${var.project_id}/genkit-app:latest"
resources {
limits = {
cpu = "2"
memory = "1Gi"
}
}
}
}
}
Build Failures
Cold Start Latency
Secret Access Denied
Memory Exceeded