diff --git a/examples/basic/README.md b/examples/basic/README.md new file mode 100644 index 0000000..27cff88 --- /dev/null +++ b/examples/basic/README.md @@ -0,0 +1,3 @@ +# Basic usage + +This example shows a basic usage of the Nebuly's platform GCP Terraform module. diff --git a/examples/basic/main.tf b/examples/basic/main.tf new file mode 100644 index 0000000..7b89d6f --- /dev/null +++ b/examples/basic/main.tf @@ -0,0 +1,74 @@ +# ------ Variables ------ # +variable "region" { + type = string + default = "us-central1" +} +variable "project" { + type = string +} + + +# ----------- Terraform setup ----------- # +terraform { + required_version = ">1.8" + required_providers { + google = { + source = "hashicorp/google" + version = "~>6.3" + } + } +} +provider "google" { + region = var.region + project = var.project +} + + +# ------ Main ------ # +module "nebuly" { + source = "nebuly-ai/nebuly-platform/gcp" + version = "~0.1.0" + + region = var.region + resource_prefix = "dev-" + + gke_cluster_admin_users = [ + "your-user@email.com", + ] + + openai_api_key = "my-key" + openai_endpoint = "https://api.openai.com" + openai_gpt4_deployment_name = "gpt-4" + nebuly_credentials = { + client_id = "" + client_secret = "" + } +} + + +# ------ Outputs ------ # +output "helm_values_bootstrap" { + value = module.nebuly.helm_values_bootstrap + sensitive = true + description = <