Giter Club home page Giter Club logo

Comments (3)

jpcoenen avatar jpcoenen commented on June 3, 2024

Hi @nnovaes,

Thank you very much for opening a ticket and providing this much detail 👐

I think I was able to reproduce the problem when I provide the Connect token through Terraform's prompt instead of through the OP_CONNECT_TOKEN environment variable. I have opened a PR to address this.

While this is not yet released, you could try setting setting your token through an environment variable:

export OP_CONNECT_TOKEN=<your-token>
terraform apply

If that works for you, I expect the problem to be resolved in the next release of the provider.

from terraform-provider-onepassword.

nnovaes avatar nnovaes commented on June 3, 2024

it did give me a different error message,

so what ultimately worked was to run export TF_VAR_OP_CONNECT_TOKEN="<TOKEN HERE>" and configure my .tf like this:


variable "OP_CONNECT_TOKEN" { 
}
provider "onepassword" {
  url = "http://localhost:8080"
  token = var.OP_CONNECT_TOKEN
}

i guess the documentation should mention the token is passed from terraform, not the docker services running, so adding TF_VAR before the actual var name is needed.

from terraform-provider-onepassword.

jpcoenen avatar jpcoenen commented on June 3, 2024

Good to hear you got it working! 🎉

But it does indeed sound like we need to clear up some things in the docs or in how the provider works. I think that is partly addressed in this PR, but I'd like to figure out if we have to do more than that.

So could you maybe share the error you got when setting OP_CONNECT_TOKEN directly?

from terraform-provider-onepassword.

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.