Skip to content

Provider not working properly if using multiple my.1password.com accounts. #217

Open
@m4r1vs

Description

@m4r1vs

Your environment

Terraform Provider Version: 2.1.2

Connect Server Version:

CLI Version:2.30.3

OS: Linux desknix 6.12.23 #1-NixOS SMP PREEMPT_DYNAMIC Thu Apr 10 12:39:41 UTC 2025 x86_64 GNU/Linux

Terraform Version:Terraform v1.11.4 on linux_amd64

What happened?

When being logged in to multiple accounts (family and work in my case) and running terraform apply, I get the error:
Unable to read item, got error: op error: error initializing client: found multiple accounts for filter "my.1password.com"

What did you expect to happen?

I expect an account chooser to pop up or - even better - being able to properly declare which account should be used in the terraform file. Currently my only option seems to be to set it like this:

provider "onepassword" {
  # NOTE: If you use a work and personal 1pw account you might run into an error.
  #       Simply run "op item list" or something like that and select the work
  #       account in the Pop-Up.
  account = "my.1password.com"
}

Steps to reproduce

  1. Log in to multiple my.1password.com accounts
  2. Run terraform apply in a project that uses the provider config above.

Notes & Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions