1Password / terraform-provider-onepassword

Use the 1Password Terraform Provider to reference, create, or update items in your 1Password Vaults.
https://1password.com/secrets
MIT License
323 stars 44 forks source link

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

Closed Aiswarya-997 closed 9 months ago

Aiswarya-997 commented 9 months ago

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