2022-12-09 07:57:30 +00:00
|
|
|
package terraform
|
|
|
|
|
|
|
|
import (
|
2023-09-11 08:18:43 +00:00
|
|
|
"context"
|
|
|
|
|
2023-05-16 16:35:39 +00:00
|
|
|
"github.com/databricks/cli/bundle"
|
2022-12-09 07:57:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Dir returns the Terraform working directory for a given bundle.
|
|
|
|
// The working directory is emphemeral and nested under the bundle's cache directory.
|
2023-09-11 08:18:43 +00:00
|
|
|
func Dir(ctx context.Context, b *bundle.Bundle) (string, error) {
|
|
|
|
return b.CacheDir(ctx, "terraform")
|
2022-12-09 07:57:30 +00:00
|
|
|
}
|