terraform-example-foundation icon indicating copy to clipboard operation
terraform-example-foundation copied to clipboard

No file diectory issue

Open vivek-ins opened this issue 3 years ago • 1 comments

TL;DR

TL;DR

Error: External Program Execution Failed │ │ with module.build_terraform_image.data.external.env_override[0], │ on .terraform/modules/build_terraform_image/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/modules/build_terraform_image/scripts/check_env.sh │ Error: fork/exec .terraform/modules/build_terraform_image/scripts/check_env.sh: no such file or directory

Expected behavior

No response

Observed behavior

No response

Terraform Configuration

module "bootstrap_csr_repo" {
  source                = "terraform-google-modules/gcloud/google"
  version               = "~> 3.1.0"
  upgrade               = false
  
  create_cmd_entrypoint = "${path.module}/scripts/push-to-repo.sh"
  create_cmd_body       = "${module.tf_source.cloudbuild_project_id} ${split("/", module.tf_source.csr_repos[local.cloudbuilder_repo].id)[3]} ${path.module}/Dockerfile"
}

Terraform Version

1.3.1

Additional information

No response

vivek-ins avatar Oct 04 '22 11:10 vivek-ins

Thanks for the report @vivek-ins From the error it looks like .terraform dir may not exist. Could you try rerunning terraform init and checking if .terraform dir exists?

bharathkkb avatar Oct 12 '22 15:10 bharathkkb

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Dec 11 '22 23:12 github-actions[bot]

Verified 0-bootstrap - working fine with the normal terraform init/plan/apply see #940

obriensystems avatar May 07 '23 16:05 obriensystems