terraform.tfvars.example 868 B

123456789101112131415161718192021222324252627282930313233
  1. # Example terraform.tfvars for minimal GCP Cloud Run deployment
  2. # Copy this file to terraform.tfvars and customize as needed
  3. # GCP Configuration
  4. project_id = "your-gcp-project-id"
  5. region = "us-central1"
  6. # Project Configuration
  7. project_name = "my-llama-api"
  8. environment = "dev"
  9. # Container Configuration
  10. container_image = "gcr.io/cloudrun/hello" # Replace with your Llama inference image
  11. cpu_limit = "4"
  12. memory_limit = "4Gi"
  13. container_port = 8080
  14. # Scaling Configuration
  15. min_instances = 0
  16. max_instances = 10
  17. # Environment Variables (optional)
  18. environment_variables = {
  19. MODEL_NAME = "llama-3.2-1B-instruct"
  20. # Add other environment variables as needed
  21. }
  22. # Access Control
  23. allow_public_access = false # Set to true for public access
  24. allowed_members = [
  25. # "user:example@domain.com",
  26. # "serviceAccount:service@project.iam.gserviceaccount.com"
  27. ]