Skip to content

Pass temp dir env vars to terraform subprocesses - #395

Merged
shreyas-goenka merged 7 commits into
mainfrom
tmp-windows
May 23, 2023
Merged

Pass temp dir env vars to terraform subprocesses#395
shreyas-goenka merged 7 commits into
mainfrom
tmp-windows

Conversation

@shreyas-goenka

@shreyas-goenkashreyas-goenka commented May 22, 2023

Copy link
Copy Markdown
Contributor

Changes

Passes through tmp dir related env vars to the terraform process. Incase any of them are not set, we assign temp dir inside bundle cache dir as the location terraform should use.

Tests

Manually checked that these env vars do override location where os.CreateTemp files are created

Comment threadbundle/deploy/terraform/init.go
@pietern

Copy link
Copy Markdown
Contributor

Thanks for debugging this!

@pieternpietern left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Remaining issues w.r.t. other operating systems and testing + environment vars.

Comment threadbundle/deploy/terraform/init.go Outdated
Comment threadbundle/deploy/terraform/init.go Outdated
Comment threadbundle/deploy/terraform/init_test.go Outdated
@pietern

Copy link
Copy Markdown
Contributor

Please also update the PR title to match current impl.

@shreyas-goenka
shreyas-goenka merged commit c53ad86 into mainMay 23, 2023
@shreyas-goenka
shreyas-goenka deleted the tmp-windows branch May 23, 2023 11:51
@pieternpietern mentioned this pull request May 23, 2023
@shreyas-goenkashreyas-goenka changed the title Create tmp files in the cache dir in terraform command runsPass temp dir env vars to subprocessesMay 23, 2023
@shreyas-goenkashreyas-goenka changed the title Pass temp dir env vars to subprocessesPass temp dir env vars to terraform subprocessesMay 23, 2023
pietern added a commit that referenced this pull request May 23, 2023
## Changes
CLI:
* Sync: Gracefully handle broken notebook files
([#398](#398)).
* Add version flag to print version and exit
([#394](#394)).
* Pass temporary directory environment variables to subprocesses
([#395](#395)).
* Rename environment variables `BRICKS_` -> `DATABRICKS_`
([#393](#393)).
* Update to Go SDK v0.9.0
([#396](#396)).
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
Passes through tmp dir related env vars to the terraform process. Incase
any of them are not set, we assign temp dir inside bundle cache dir as
the location terraform should use.
## Tests
Manually checked that these env vars do override location where
os.CreateTemp files are created
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
CLI:
* Sync: Gracefully handle broken notebook files
([#398](#398)).
* Add version flag to print version and exit
([#394](#394)).
* Pass temporary directory environment variables to subprocesses
([#395](#395)).
* Rename environment variables `BRICKS_` -> `DATABRICKS_`
([#393](#393)).
* Update to Go SDK v0.9.0
([#396](#396)).
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@shreyas-goenka@pietern