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

Fails if a managed item moved to another vault #166

Open
zzhanabek opened this issue May 14, 2024 · 0 comments
Open

Fails if a managed item moved to another vault #166

zzhanabek opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zzhanabek
Copy link

Your environment

Terraform Provider Version: 1.4.1

CLI Version: 2.24.0

OS: Alpine Linux v3.18

Terraform Version: 1.8.3.

What happened?

Got error:

│ Error: op error: "MASKED_ID_OF_ITEM" isn't an item in the "MASKED_ID_OF_VAULT" vault.
│ 
│   with MASKED.onepassword_item.MASKED,
│   on main.tf line 29, in resource "onepassword_item" "MASKED":
│   29: resource "onepassword_item" "MASKED" {
│ 

even when I have this lifecycle:

  lifecycle {
    ignore_changes = [vault]
  }

What did you expect to happen?

Ignore vault changes or recreate in resources vault

Steps to reproduce

  1. create a resource "onepassword_item"
  2. Apply changes
  3. Move newly created item somewhere else
  4. repeat
@zzhanabek zzhanabek added the bug Something isn't working label May 14, 2024
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

1 participant