Skip to content

Commit affa5a8

Browse files
committed
use operator, clean up versions + readme
1 parent 7e154fc commit affa5a8

File tree

3 files changed

+8
-30
lines changed

3 files changed

+8
-30
lines changed

examples/public-dns-external/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ resources already exist:
2424
example.com with new NS records for test.example.com.
2525
- Valid W&B Local license (You get one at [here](https://deploy.wandb.ai))
2626

27+
Note: to run terraform apply, config with AWS SSO, and make sure to set the profile env var.
28+
2729
## Terraform Variables Example
2830

2931
```
3032
namespace = "wandb"
3133
subdomain = "test"
3234
domain_name = "wandb.io"
3335
license = "<license key>"
36+
zone_id = "<route 53 zone ID>"
3437
```
3538

3639
This will deploy an instance at `test.wandb.io`.

examples/public-dns-external/main.tf

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ module "wandb_infra" {
2020

2121
deletion_protection = false
2222

23+
enable_dummy_dns = true
24+
enable_operator_alb = true
25+
2326
database_instance_class = var.database_instance_class
2427
database_engine_version = var.database_engine_version
2528
database_snapshot_identifier = var.database_snapshot_identifier
@@ -28,7 +31,7 @@ module "wandb_infra" {
2831
allowed_inbound_cidr = var.allowed_inbound_cidr
2932
allowed_inbound_ipv6_cidr = ["::/0"]
3033

31-
eks_cluster_version = "1.25"
34+
eks_cluster_version = "1.26"
3235
kubernetes_public_access = true
3336
kubernetes_public_access_cidrs = ["0.0.0.0/0"]
3437

@@ -83,34 +86,6 @@ provider "helm" {
8386
}
8487
}
8588

86-
module "wandb_app" {
87-
source = "wandb/wandb/kubernetes"
88-
version = "1.12.0"
89-
90-
license = var.wandb_license
91-
92-
host = module.wandb_infra.url
93-
bucket = "s3://${module.wandb_infra.bucket_name}"
94-
bucket_aws_region = module.wandb_infra.bucket_region
95-
bucket_queue = "internal://"
96-
bucket_kms_key_arn = module.wandb_infra.kms_key_arn
97-
database_connection_string = "mysql://${module.wandb_infra.database_connection_string}"
98-
redis_connection_string = "redis://${module.wandb_infra.elasticache_connection_string}?tls=true&ttlInSeconds=604800"
99-
100-
wandb_image = var.wandb_image
101-
wandb_version = var.wandb_version
102-
103-
service_port = module.wandb_infra.internal_app_port
104-
105-
# If we dont wait, tf will start trying to deploy while the work group is
106-
# still spinning up
107-
depends_on = [module.wandb_infra]
108-
109-
other_wandb_env = merge({
110-
"GORILLA_CUSTOMER_SECRET_STORE_SOURCE" = "aws-secretmanager://${var.namespace}?namespace=${var.namespace}"
111-
}, var.other_wandb_env)
112-
}
113-
11489
output "bucket_name" {
11590
value = module.wandb_infra.bucket_name
11691
}

examples/public-dns-external/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ variable "wandb_license" {
3333
variable "database_engine_version" {
3434
description = "Version for MySQL Auora"
3535
type = string
36-
default = "8.0.mysql_aurora.3.02.2"
36+
default = "8.0.mysql_aurora.3.03.2"
3737
}
3838

3939
variable "database_instance_class" {

0 commit comments

Comments
 (0)