Skip to content

Commit

Permalink
fix terraform state location
Browse files Browse the repository at this point in the history
  • Loading branch information
dotxlem committed Oct 7, 2022
1 parent a7a9dba commit 8d1318c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/src/terraform/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub fn plan() {
.arg("-chdir=./net")
.arg("plan")
.arg("-out=./plan")
.arg("-state=../terraform.tfstate")
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.spawn()
Expand All @@ -38,6 +39,7 @@ pub fn apply() {
let mut terraform_result = process::Command::new(relative_binary_path())
.arg("-chdir=./net")
.arg("apply")
.arg("-state=../terraform.tfstate")
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.spawn()
Expand Down

0 comments on commit 8d1318c

Please sign in to comment.