ljfranklin / terraform-resource

A concourse resource to create infrastructure via Terraform
MIT License
185 stars 85 forks source link

open terraform/resource_backend_override.tf: no such file or directory #153

Closed skdubey closed 3 years ago

skdubey commented 3 years ago

Hi,

I have been trying to do a POC to runTerraform plan and apply from my local concourse setup to AWS account. However, I am getting attached error which unable to fix. While looking for error message I could see that it's related to some override key/value in more than one file, But even after removing all the reference and keeping that in pipeline confi only, I am still struck on same issue.

Error: "open terraform/resource_backend_override.tf: no such file or directory" Pipeline config - resource_types:

resources:

jobs:

ljfranklin commented 3 years ago

That error is saying the terraform directory given to terraform_source doesn't exist. I added a better error message here to hopefully make that more clear. I'm guessing you want terraform_source: srcrepo/terraform or similar. The source_dir: "/tmp/build/put/git" value also looks suspicious, you probably want srcrepo as well although I'm not sure why you would need to reference the source directory as a variable in the first place.

skdubey commented 3 years ago

Thanks @ljfranklin for your response and suggestion. The error is vanished.

skdubey commented 3 years ago

Closing this ticket. Issue is fixed.