terraform-provider-onepassword
terraform-provider-onepassword copied to clipboard
Terraform cannot connect to team account
Hello,
We have a team account in 1Password and we are using the following sign-in address while using the 1Password cli:
I'm trying to configure the 1password provider in Terraform, using the followind fields:
provider "onepassword" {
version = ">= 0.6.3" #I'm using the latest release of the 1password provider
email = var.onepassword_email
password = var.onepassword_password
secret_key = var.onepassword_secret_key
subdomain = "myteam.ent" # Optional. Comes from <subdomain>.1password.com.
}
The above code fails to connect to my 1Password vault, it throws the below error:
Error: Cannot signin: [ERROR] 2020/06/23 14:43:21 Couldn't connect to the sign in address you provided. Make sure the address is correct and check your network connection, then try again.
Is this a bug or is there something wrong in the way I've filled the subdomain field? I'm using the following versions:
Terraform v0.12.26
- provider.onepassword v0.6.3
Thanks!
Hello,
Maybe the issue is related to a bug in the latest release of the 1password cli (op) => affected version is v1.1.0: https://discussions.agilebits.com/discussion/114031/mac-cli-fails-with-cant-sign-in-enter-your-full-sign-in-address
As a current workaround I'm using the previous version of 1password cli, v1.0.0
Hello,
I've tested all combinations and I've finally made it work by adding the full sign-in address under subdomain field => "myteam.ent.1password.com"
Full provider definition:
provider "onepassword" {
version = ">= 0.6.3" #I'm using the latest release of the 1password provider
email = var.onepassword_email
password = var.onepassword_password
secret_key = var.onepassword_secret_key
subdomain = "myteam.ent.1password.com" # Optional. Comes from <subdomain>.1password.com.
}