deliveredtechnologies / terraform-maven

Terraform Maven Plugin
Apache License 2.0
42 stars 13 forks source link

terraform wrapper not executable #248

Open Clayton7510 opened 3 years ago

Clayton7510 commented 3 years ago

Describe the bug

When using the tf:wrapper command, the .tf directory gets created and configured. When I execute a Terraform command like mvn tf:init, the wrapper does seem to download an executable. But then there is an error that says the terraform executable is not executable.

To Reproduce Steps to reproduce the behavior:

  1. bootstrap the wrapper in a tf maven project by executing mvn tf:wrapper -DreleaseVer=0.14.8
  2. execute mvn tf:init
  3. fails to execute terraform command

Expected behavior I would expect the wrapper to direct the terraform command to the terraform executable downloaded by the wrapper (and it does). I would also expect the terraform executable to be executable (which it isn't) and to execute the terraform command (which it doesn't).

Screenshots

image

image

Additional context

I thought this was fixed, but apparently not. BTW, this happens on the latest full release (v0.12) and on the latest pre-release versions (v0.13-20). I am on Mac OS Big Sur. But I also had this problem on the latest version of Amazon Linux 2.