databricks-cli/bundle/deploy/terraform/dir.go

14 lines
337 B
Go
Raw Normal View History

package terraform
import (
"context"
"github.com/databricks/cli/bundle"
)
// Dir returns the Terraform working directory for a given bundle.
// The working directory is emphemeral and nested under the bundle's cache directory.
func Dir(ctx context.Context, b *bundle.Bundle) (string, error) {
return b.CacheDir(ctx, "terraform")
}