anasinnyk / terraform-provider-onepassword

Terraform provider for 1Password
GNU Lesser General Public License v3.0
128 stars 38 forks source link

Adding Password Deletes Vault #22

Closed robthejedi closed 5 years ago

robthejedi commented 5 years ago

OP Version: 0.6.1 Provider: 0.5.0

Trying to add a password to a vault with the following command:

resource "onepassword_item_password" "this" { name = "Password From Terraform" url = "https://example.com" password = "adsfnkoang9-24-ht0h09gah-2-d" vault = "Test Terraform Provider" }

When apply is run the following message is show. If executed the vault is deleted and then it tries to ad the password.

n execution plan has been generated and is shown below. Resource actions are indicated with the following symbols:

Terraform will perform the following actions:

onepassword_item_password.this will be created

Plan: 1 to add, 0 to change, 1 to destroy. It shouldn't be deleting the vault.

robthejedi commented 5 years ago

Corrupted terraform.tfstatefile