Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to use Terraform wrapper with pwsh shell on windows based self-hosted runner #470

Open
ankitatdnv opened this issue Feb 27, 2025 · 1 comment

Comments

@ankitatdnv
Copy link

Hi,

I am trying to use windows based self-hosted runners for terraform deployment, but when I use the terraform-wrapper: true, None of the Terraform commands get executed and give the following output:

Image

However when I run it with terraform-wrapper: false, all Terraform commands works fine, but then I cannot use -detailed-exitcode, as with this plan fails due to non zero exit code.

@ansgarm
Copy link
Member

ansgarm commented Mar 10, 2025

Hi @ankitatdnv 👋

have you tried using bash as the shell? As per our usage section in the Readme:

When running on windows-latest the shell should be set to Bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants