anasinnyk/terraform-provider-onepassword

Should data.onepassword_item_login output username?

Opened this issue · 1 comments

Hi, I have this:

data "onepassword_item_login" "mylogin" {
  name  = "jdoe@gmail.com"
  vault = "myvault"
}

I'm able to read the password like so:

  "${data.onepassword_item_login.mylogin.password"}

But I cannot read the username (I would like to read the username):

  "${data.onepassword_item_login.mylogin.username"}

Is this intended? Am I missing something?

@Charlex I think you don't have a field username here.
if you create it via terraform you have to use "name" for record title and username for username. Can you show me your 1Password UI?

Thanks