1Password / terraform-provider-onepassword

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

Recreate item when it is missing #97

Open miguelaferreira opened 1 year ago

miguelaferreira commented 1 year ago

Your environment

Terraform Provider Version: 1.1.4 (due to this bug on later versions)

Connect Server Version: latest which at this moment should be 1.7.1

OS: Linux (running the container that 1Password provides)

Terraform Version: v1.4.6

What happened?

I used the item resource to create an item in a vault. Then I deleted the item in the vault, and ran terraform again. Terraform threw an error after refresh saying that the item wasn't found.

What did you expect to happen?

I expected that terraform would recreate the item.

Steps to reproduce

  1. Create an item using the provider
  2. Delete the item
  3. Run terraform again

Notes & Logs