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

Recreate item when it is missing #97

Open
miguelaferreira opened this issue Jul 24, 2023 · 5 comments
Open

Recreate item when it is missing #97

miguelaferreira opened this issue Jul 24, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@miguelaferreira
Copy link

miguelaferreira commented Jul 24, 2023

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

@miguelaferreira miguelaferreira added the bug Something isn't working label Jul 24, 2023
@Ramblurr
Copy link

Yes this is still a problem:

│ Error: op error: "abc123" isn't an item in the "abc123" vault.

@maxexcloo
Copy link

Same issue for me, complains that the item can't be found.

@josh-thisisbud
Copy link

josh-thisisbud commented Aug 2, 2024

Still getting this issue on 1.4.3, which I'm stuck on due to broken sections on data resources

@josh-thisisbud
Copy link

josh-thisisbud commented Aug 5, 2024

Just tried 2.1.0, still an issue I get

╷
│ Error: 1Password Item read error
│ 
│   with onepassword_item.onepassword_password_item,
│   on cdk.tf.json line 77, in resource.onepassword_item.onepassword_password_item:
│   77:       }
│ 
│ Could not get item '<item uuid redacted>' from vault
│ '<vault uuid redacted>', got error: Found 0 item(s) in vault
│ "<vault uuid redacted>" with title "<item uuid redacted>"
╵

@slagcode
Copy link

Running into this issue as well. Proving to be a critical bug that needs fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants