Skip to content

Error: External Program Execution Failed #772

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

Closed
adithyaGR opened this issue Dec 2, 2022 · 2 comments
Closed

Error: External Program Execution Failed #772

adithyaGR opened this issue Dec 2, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@adithyaGR
Copy link

TL;DR

Im trying to run the code as mentioned in the documentation https://github.com/terraform-google-modules/terraform-google-gcloud/ but im unable to run it locally and I get the error as mentioned here

Expected behavior

The code should tun without any issues

Observed behavior

$ terraform plan
module.gcloud_test.data.external.env_override[0]: Reading...

│ Error: External Program Execution Failed

│ with module.gcloud_test.data.external.env_override[0],
│ on terraform-google-gcloud\main.tf line 73, in data "external" "env_override":
│ 73: program = ["${path.module}/scripts/check_env.sh"]

│ The data source received an unexpected error while attempting to execute
│ the program.

│ Program: terraform-google-gcloud/scripts/check_env.sh
│ Error: fork/exec terraform-google-gcloud/scripts/check_env.sh: %1 is not a

Terraform Configuration

module "gcloud_test" {
    source = "./terraform-google-gcloud"
    create_cmd_entrypoint  = "gcloud"
    create_cmd_body        = "version"
}

Terraform Version

$ terraform -version
Terraform v1.3.6
on windows_amd64
+ provider registry.terraform.io/hashicorp/external v2.2.3
+ provider registry.terraform.io/hashicorp/google v4.44.1
+ provider registry.terraform.io/hashicorp/null v3.2.1
+ provider registry.terraform.io/hashicorp/random v3.4.3

Additional information

Both TF version v1.3.6 and 1.2.0 throws the error as mentioned here

@adithyaGR adithyaGR added the bug Something isn't working label Dec 2, 2022
@adithyaGR
Copy link
Author

│ Error: fork/exec terraform-google-gcloud/scripts/check_env.sh: %1 is not a
│ valid Win32 application.

@bharathkkb
Copy link
Member

Thanks for the report @adithyaGR
This seems related to terraform-google-modules/terraform-google-gcloud#84 and not this module. I have reopened that issue but I suspect there is no easy way for us to support this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants