diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bc3bb8..65bb069 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,27 @@ All notable changes to this project will be documented in this file. +### [3.1.1](https://github.com/wandb/terraform-google-wandb/compare/v3.1.0...v3.1.1) (2024-06-05) + + +### Bug Fixes + +* Consistent object type for redis ([#133](https://github.com/wandb/terraform-google-wandb/issues/133)) ([34c5d94](https://github.com/wandb/terraform-google-wandb/commit/34c5d94da5ba75d9d5c7ad6ebbd6aef66bf702c4)) + +## [3.1.0](https://github.com/wandb/terraform-google-wandb/compare/v3.0.5...v3.1.0) (2024-06-05) + + +### Features + +* added support for stackdriver and otel metrics ([#126](https://github.com/wandb/terraform-google-wandb/issues/126)) ([1e8777a](https://github.com/wandb/terraform-google-wandb/commit/1e8777af0f6bf6e8260a0faa488302f631b716b3)) + +### [3.0.5](https://github.com/wandb/terraform-google-wandb/compare/v3.0.4...v3.0.5) (2024-06-05) + + +### Bug Fixes + +* Need the global redis helm values to not be null even when disabled ([#131](https://github.com/wandb/terraform-google-wandb/issues/131)) ([e8c4602](https://github.com/wandb/terraform-google-wandb/commit/e8c46022cbb5d9ca76f62ad14bded42279e5dfb6)) + ### [3.0.4](https://github.com/wandb/terraform-google-wandb/compare/v3.0.3...v3.0.4) (2024-04-12) diff --git a/README.md b/README.md index 768f473..3e2c602 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,9 @@ resources that lack official modules. ## Providers -No providers. +| Name | Version | +|------|---------| +| [google](#provider\_google) | ~> 4.82 | ## Modules @@ -87,7 +89,9 @@ No providers. ## Resources -No resources. +| Name | Type | +|------|------| +| [google_client_config.current](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/client_config) | data source | ## Inputs @@ -103,6 +107,7 @@ No resources. | [deletion\_protection](#input\_deletion\_protection) | If the instance should have deletion protection enabled. The database / Bucket can't be deleted when this value is set to `true`. | `bool` | `true` | no | | [disable\_code\_saving](#input\_disable\_code\_saving) | Boolean indicating if code saving is disabled | `bool` | `false` | no | | [domain\_name](#input\_domain\_name) | Domain for accessing the Weights & Biases UI. | `string` | `null` | no | +| [enable\_stackdriver](#input\_enable\_stackdriver) | n/a | `bool` | `false` | no | | [force\_ssl](#input\_force\_ssl) | Enforce SSL through the usage of the Cloud SQL Proxy (cloudsql://) in the DB connection string | `bool` | `false` | no | | [gke\_machine\_type](#input\_gke\_machine\_type) | Specifies the machine type to be allocated for the database | `string` | `"n1-standard-4"` | no | | [gke\_node\_count](#input\_gke\_node\_count) | n/a | `number` | `2` | no | @@ -121,6 +126,7 @@ No resources. | [redis\_tier](#input\_redis\_tier) | Specifies the tier for this Redis instance | `string` | `"STANDARD_HA"` | no | | [resource\_limits](#input\_resource\_limits) | Specifies the resource limits for the wandb deployment | `map(string)` |
{
"cpu": null,
"memory": null
}
| no | | [resource\_requests](#input\_resource\_requests) | Specifies the resource requests for the wandb deployment | `map(string)` |
{
"cpu": "2000m",
"memory": "2G"
}
| no | +| [service\_account\_name](#input\_service\_account\_name) | n/a | `string` | `"stackdriver"` | no | | [size](#input\_size) | Deployment size for the instance | `string` | `null` | no | | [ssl](#input\_ssl) | Enable SSL certificate | `bool` | `true` | no | | [subdomain](#input\_subdomain) | Subdomain for accessing the Weights & Biases UI. Default creates record at Route53 Route. | `string` | `null` | no | @@ -129,6 +135,7 @@ No resources. | [wandb\_image](#input\_wandb\_image) | Docker repository of to pull the wandb image from. | `string` | `"wandb/local"` | no | | [wandb\_version](#input\_wandb\_version) | The version of Weights & Biases local to deploy. | `string` | `"latest"` | no | | [weave\_wandb\_env](#input\_weave\_wandb\_env) | Extra environment variables for W&B | `map(string)` | `{}` | no | +| [workload\_account\_id](#input\_workload\_account\_id) | n/a | `string` | `"stackdriver"` | no | ## Outputs diff --git a/examples/public-dns-with-cloud-dns/README.md b/examples/public-dns-with-cloud-dns/README.md index 31b89ae..6194051 100644 --- a/examples/public-dns-with-cloud-dns/README.md +++ b/examples/public-dns-with-cloud-dns/README.md @@ -79,24 +79,26 @@ Note: The domain and subdomain association might take a few minutes to reflect. - Now, create a file called `terraform.tfvars` under the current directory - `terraform.tfvars` should have the following variables included, ```markdown - project_id = "" - region = "" - zone = "" - namespace = "" - license = "" - subdomain = "" - domain = "" + project_id = "" + region = "" + zone = "" + namespace = "" + license = "" + subdomain = "" + domain_name = "" + allowed_inbound_cidrs = [""] ``` Refer to sections above to see how you can obtain these values An example `terraform.tfvars` file would look like this, ```markdown - project_id = "playground-111" - region = "us-west4" - zone = "us-west4-a" - namespace = "venky-unique-3" - license = "eyJhbGciOiJS6InUzhEUXM1M0xQY09yNnZhaTdoSlduYnF1bTRZTlZWd1VwSWM9In0.eyJjb25jdXJyZW50QWdlbnRzIjoxMCwiZGVwbG95bWVudElkIjoiNGU0YWNiZmYtY2E5NS00MmRiLThmYmItMjliNmY5NTI2OWE0IiwibWF4VXNlcnMiOjQsIm1heFN0b3JhZ2VHYiI6MTAwMDAwMCwibWF4VGVhbXMiOjEsImV4cGlyZXNBdCI6IjIwMjItMTAtMjBUMTY6MjY6NTUuNzA3WiIsImZsYWdzIjpbIlNDQUxBQkxFIiwibXlzcWwiLCJzMyIsInJlZGlzIiwiTk9USUZJQ0FUSU9OUyIsInNsYWNrIiwibm90aWZpY2F0aW9ucyIsIk1BTkFHRU1FTlQiLCJvcmdfZGFzaCIsImF1dGgwIl0sInRyaWFsIjpmYWxzZSwiYWNjZXNzS2V5IjoiNzk3M2FkOWItNThmOC00OTUxLWJhOTctOGQ2NGFkYzI1ZThlIiwic2VhdHMiOjQsInRlYW1zIjoxLCJzdG9yYWdlR2lncyI6MTAwMDAwMCwiZXhwIjoxNjY2MjgzMjE1fQ.O_6D3Av9QoWI16ybg54KFvs7eGWugSXPxmfhobtZe3TBFvd8PwmSCAmMojmKWsqg6KNjLJ9sjxOP_3Pj9OAdrkx5WzU0KTcIByXD2hS9VwyYUOYEohBn65oCLnQJLYphXJBrB9JVS0GSUGxR1AzwnUK1PuKZ6jQFrpt-feQOD3rvCdyM1eBQ73rdHk6zfEBmdiZ7C4LiRLV8OEMxUfwxASvVF_cFUEeVQx82AaxRwfPBLZxXTL4qlQOIFjAKwGVyDMEWq04BhQ_ASdyND45w5qXiUOlvFOergrFyGBSHg-9yDT4fhdkDw5puGthDaMFsn02rr0eYHuxKFWSY958aig" - subdomain = "venky" - domain = "wandb.ml" + project_id = "playground-111" + region = "us-west4" + zone = "us-west4-a" + namespace = "venky-unique-3" + license = "W&B-license-key goes here" + subdomain = "venky" + domain_name = "wandb.ml" + allowed_inbound_cidrs = ["0.0.0.0/0"] ``` ### Initializing the terraform diff --git a/main.tf b/main.tf index 62e3e17..dbbd542 100644 --- a/main.tf +++ b/main.tf @@ -232,7 +232,17 @@ module "wandb" { ttlInSeconds = 604800 caCertPath = "/etc/ssl/certs/redis_ca.pem" } - } : null + } : { + password = "" + host = "" + port = 0 + caCert = "" + params = { + tls = false + ttlInSeconds = 0 + caCertPath = "" + } + } } app = { @@ -296,7 +306,7 @@ module "wandb" { } } - redis = { install = false } + redis = { install = !var.create_redis } mysql = { install = false } weave = { diff --git a/variables.tf b/variables.tf index 5b5a581..57aa658 100644 --- a/variables.tf +++ b/variables.tf @@ -256,7 +256,7 @@ variable "parquet_wandb_env" { variable "enable_stackdriver" { type = bool - default = true + default = false } variable "workload_account_id" {