-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init testing * set branch
- Loading branch information
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# TEST: Public DNS deployment of W&B | ||
|
||
## About This Test | ||
|
||
## Prerequisites | ||
|
||
## How This Test Is Used | ||
|
||
This test is leveraged by this repository's continuous integration setup which | ||
leverages workspaces in a Terraform Cloud workspaces as a remote backend so that | ||
Terraform state is preserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
provider "google" { | ||
default_labels = local.labels | ||
} | ||
|
||
provider "google-beta" { | ||
default_labels = local.labels | ||
} | ||
|
||
resource "random_pet" "main" { | ||
length = 1 | ||
prefix = "tgw-pd" | ||
separator = "-" | ||
} | ||
|
||
variable "license" { | ||
type = string | ||
} | ||
|
||
locals { | ||
labels = { | ||
oktodelete = "true" | ||
department = "engineering" | ||
product = "server" | ||
repository = "terraform-google-wandb" | ||
description = "public-dns" | ||
environment = "test" | ||
} | ||
} | ||
|
||
module "wandb" { | ||
source = "../../" | ||
|
||
namespace = random_pet.main.id | ||
subdomain = random_pet.main.id | ||
license = var.license | ||
domain_name = "wandb.ml" | ||
|
||
create_redis = true | ||
use_internal_queue = true | ||
|
||
deletion_protection = false | ||
|
||
labels = local.labels | ||
} | ||
|
||
output "url" { | ||
value = module.wandb.url | ||
} | ||
|
||
output "health_check_url" { | ||
value = "${module.wandb.url}/health" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
terraform { | ||
required_version = ">= 0.14" | ||
|
||
cloud { | ||
organization = "weights-and-biases" | ||
|
||
workspaces { | ||
name = "terraform-google-wandb-public-dns" | ||
} | ||
} | ||
} |