Giter Site home page Giter Site logo

Comments (8)

umairidris avatar umairidris commented on June 10, 2024

Did you try removing the cdap provider and resource but keeping the google_client_config data source? It seems that is the one that's failing to find credentials.

If you're running on a local machine try running gcloud auth application-default login.

from terraform-provider-cdap.

jasonmcboyd avatar jasonmcboyd commented on June 10, 2024

Hi thanks for your help. Yes, as I mentioned in the problem statement, if I remove the cdap resource it executes successfully and creates the data fusion instance.

I'm trying to run it locally and from a docker container. Neither one is working. On my local machine I am authenticated with gcloud. In the docker container I do not have gcloud installed and was hoping to not have to take a dependency on it.

I don't know if it's relevant but I'm working in WSL on my local machine.

from terraform-provider-cdap.

umairidris avatar umairidris commented on June 10, 2024

This is unusual because in the code we don't search for the default credentials and instead just rely on the token being passed in.

What happens if you use this resource instead:

resource "local_file" "foo" {
    content     = data.google_client_config.current.access_token
    filename = "/tmp/token"
}

Does /tmp/token get populated correctly?

from terraform-provider-cdap.

jasonmcboyd avatar jasonmcboyd commented on June 10, 2024

It does.

from terraform-provider-cdap.

umairidris avatar umairidris commented on June 10, 2024

Thanks, I did a bit of digging and believe I found the cause. Sent #82

from terraform-provider-cdap.

umairidris avatar umairidris commented on June 10, 2024

I released v0.6.0. Please give it a try

from terraform-provider-cdap.

jasonmcboyd avatar jasonmcboyd commented on June 10, 2024

Wow! I step into a meeting and come back to find the problem is solved! Thanks so much. Yes, v0.6.0 is working for me now.

from terraform-provider-cdap.

umairidris avatar umairidris commented on June 10, 2024

Glad to hear it! Hope you find the provider useful.

from terraform-provider-cdap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.