1Password/terraform-provider-onepassword

Terraform cannot create items with the password we provide in the code

Aiswarya-997 opened this issue · 0 comments

Your environment

Terraform Provider Version:1password provider version:1.3.1

Connect Server Version:No connect server.Service account token is used.

CLI Version:2.23.0

OS:Windows

Terraform Version:1.6.5

What happened?

I am trying to add new passwords into 1password. I want the items to have the password that I mention in the code through environment variables. But when I apply the terraform changes, a random password is created, which is not expected.

What did you expect to happen?

I want the password in the code to appear in 1password.

Steps to reproduce

  1. Create an item in 1password using terraform code: example snippet:

resource "onepassword_item" "secrets-1"{
vault = var.vault
title = "test"
category = "password"
password = "sdfyguihgfg"
}

2)When we do terraform apply, a different password is created other than the one mentioned in the code snippet.

Notes & Logs