Skip to content

Commit

Permalink
fix terraform init issue by pinning version to 1.1.9 (#166)
Browse files Browse the repository at this point in the history
LGTM, thanks for catching this Greg!
  • Loading branch information
gbrayut authored Jun 16, 2022
1 parent 1680afb commit 111ca42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/pkg/lifecycle/tf_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func DestroyTF(tfDir string) {
}
defer os.RemoveAll(tmpDir)

execPath, err := tfinstall.Find(context.Background(), tfinstall.LatestVersion(tmpDir, false))
execPath, err := tfinstall.Find(context.Background(), tfinstall.ExactVersion("1.1.9", tmpDir))
if err != nil {
log.Fatalf("error locating Terraform binary: %s", err)
}
Expand Down
4 changes: 2 additions & 2 deletions cli/pkg/lifecycle/tf_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func InitTF(tfDir string, tfStateBucket string) {
}
defer os.RemoveAll(tmpDir)

execPath, err := tfinstall.Find(context.Background(), tfinstall.LatestVersion(tmpDir, false))
execPath, err := tfinstall.Find(context.Background(), tfinstall.ExactVersion("1.1.9", tmpDir))
if err != nil {
log.Fatalf("error locating Terraform binary: %s", err)
}
Expand Down Expand Up @@ -78,7 +78,7 @@ func ApplyTF(tfDir string) {
}
defer os.RemoveAll(tmpDir)

execPath, err := tfinstall.Find(context.Background(), tfinstall.LatestVersion(tmpDir, false))
execPath, err := tfinstall.Find(context.Background(), tfinstall.ExactVersion("1.1.9", tmpDir))
if err != nil {
log.Fatalf("error locating Terraform binary: %s", err)
}
Expand Down

0 comments on commit 111ca42

Please sign in to comment.