Skip to content

Commit 6609021

Browse files
committed
feat: setup Terraform plugin cache directory
1 parent 02aa23b commit 6609021

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/utils/terraform_utils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func initTerraform(ctx context.Context, workingDir, terraformExecPath string, cr
7171
"AWS_SECRET_ACCESS_KEY": credentials.SecretAccessKey,
7272
"SPOTINST_TOKEN": os.Getenv("SPOTINST_TOKEN"),
7373
"SPOTINST_ACCOUNT": os.Getenv("SPOTINST_ACCOUNT"),
74+
"TF_PLUGIN_CACHE_DIR": fmt.Sprintf("%s/plugin-cache", filepath.Dir(terraformExecPath)),
7475
}
7576

7677
// this overrides all ENVVARs that are passed to Terraform

0 commit comments

Comments
 (0)