Skip to content

Commit

Permalink
Bucket noop for now
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Aug 5, 2024
1 parent ebde190 commit b767868
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ locals {
path = var.blob_container
accessKey = var.storage_key
}
bucket_config = var.external_bucket != null ? var.external_bucket : (local.use_customer_bucket ? local.default_bucket_config : {})
bucket_config = var.external_bucket != null ? var.external_bucket : (local.use_customer_bucket ? local.default_bucket_config : null)
}

module "wandb" {
Expand All @@ -247,7 +247,12 @@ module "wandb" {
host = local.url
license = var.license
cloudProvider = "azure"
bucket = local.bucket_config
bucket = local.bucket_config == null ? {
provider = "az"
name = module.storage[0].account.name
path = module.storage[0].container.name
accessKey = module.storage[0].account.primary_access_key
} : local.bucket_config
defaultBucket = {
provider = "az"
name = module.storage[0].account.name
Expand Down

0 comments on commit b767868

Please sign in to comment.