diff --git a/main.tf b/main.tf index 92ae1c1..779524e 100644 --- a/main.tf +++ b/main.tf @@ -220,6 +220,7 @@ module "wandb" { bucket = { provider = "gcs" name = local.bucket + subpath = var.subpath } mysql = { diff --git a/variables.tf b/variables.tf index fb5c05c..e06a706 100644 --- a/variables.tf +++ b/variables.tf @@ -198,6 +198,18 @@ variable "bucket_name" { default = "" } +########################################## +# Bucket Subpath # +########################################## +# Most users will not need this setting. It is meant for users who want to store +# all of their instance-level bucket's data at a specific subpath. It can be set both for +# external buckets or the bucket created by this module. +variable "subpath" { + description = "subpath of where to store data for the instance-level bucket" + type = string + default = "" +} + ########################################## # K8s # ##########################################