Skip to content

Commit

Permalink
add optional path variable for instance level subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
levinandrew committed Jul 11, 2024
1 parent a172237 commit 4830a4d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ module "wandb" {
bucket = {
provider = "gcs"
name = local.bucket
subpath = var.subpath
}

mysql = {
Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
##########################################
Expand Down

0 comments on commit 4830a4d

Please sign in to comment.