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

File not found error in file function when running in Terraform Cloud #23649

Closed
NiyiOdumosu opened this issue Dec 11, 2019 · 3 comments
Closed

Comments

@NiyiOdumosu
Copy link

NiyiOdumosu commented Dec 11, 2019

Terraform Version

terraform -v
Terraform v0.12.17

Terraform Configuration Files

provider "google" {
  credentials = file("../../../service-key/service-key.json")
  project     = var.composer_project
  region      = "us-east4"
}

Expected Behavior

Plan: 7 to add, 0 to change, 0 to destroy.

Actual Behavior

Error: Error in function call

  on modules/composer/main.tf line 2, in provider "google":
   2:   credentials = file("../../../service-key/service-key.json")

Call to function "file" failed: no file exists at
../../../service-key/service-key.json.

Steps to Reproduce

  1. terraform plan

Additional Context

I went into my terraform cloud account and changed the execution mode from remote to local in my workspace. That was supposed to fix the issue according to the issue referenced below.

References

#22898

@seanwalker5
Copy link

Hi Niyi, I have sent you an email.
-Sean

@apparentlymart
Copy link
Contributor

Hi @NiyiOdumosu! Thanks for reporting this and sorry for the delayed response.

We use issues in this repository to represent bugs and feature requests in Terraform CLI. Terraform Cloud is developed by other teams who don't typically monitor this repository, and they prefer to hear about bug reports and feature requests via the customer support system.

If you have a paid account on Terraform Cloud, please send this feedback to your usual support contacts. Otherwise, you can contact the Terraform Cloud support team at [email protected]. If you contact the support team, be sure to include your Terraform Cloud username and organization name in your request.

Thanks again!

@ghost
Copy link

ghost commented Feb 13, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Feb 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants