Skip to content

Password is updated after importing the resource #312

@volodymyrZotov

Description

@volodymyrZotov

Your environment

Terraform Provider Version: 3.0.2

Authentication Method: service accounts

Connect Server Version: n/a

OS: macos

Terraform Version: 1.14.0

What happened?

What did you expect to happen?

After importing resource and running terraform apply the password is updated.

Steps to reproduce

  1. Create a Terraform configuration with password_recipe:
resource "onepassword_item" "example" {
  vault = "your-vault-id"
  title = "Test Item"
  category = "login"

  password_recipe {
    length  = 32
    digits  = true
    symbols = true
  }
}
  1. Run terraform apply to create the item
  2. Remove the resource from state: terraform state rm onepassword_item.example
  3. Import the resource: terraform import onepassword_item.example vaults/<vault-id>/items/<item-id>
  4. Run terraform apply
  5. Observe that the password value has changed

Notes & Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected. Has never worked before. When it has, use "regression" instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions