Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should data.onepassword_item_login output username? #27

Open
hcharley opened this issue Nov 30, 2019 · 1 comment
Open

Should data.onepassword_item_login output username? #27

hcharley opened this issue Nov 30, 2019 · 1 comment

Comments

@hcharley
Copy link
Contributor

Hi, I have this:

data "onepassword_item_login" "mylogin" {
  name  = "[email protected]"
  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?

@anasinnyk
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants