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

Secure Note resource fails to apply #173

Open
volodymyrZotov opened this issue May 17, 2024 · 0 comments · May be fixed by #181
Open

Secure Note resource fails to apply #173

volodymyrZotov opened this issue May 17, 2024 · 0 comments · May be fixed by #181
Labels
bug Something isn't working

Comments

@volodymyrZotov
Copy link
Collaborator

Your environment

Terraform Provider Version: v2.0.0

Connect Server Version: 1.7.2

CLI Version: 2.28.0

OS:

Terraform Version: 1.7.4

What happened?

When apply resource with the secure_note category the following error occurs:

╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value for onepassword_item.test-secure-note.password. All values must be known after apply, so this is always a bug in the provider and should be reported in the
│ provider's own repository. Terraform will still save the other known object values in the state.
╵

Though there is an error, I see the item is created in 1Password.

What did you expect to happen?

No errors occur.

Steps to reproduce

  1. Use the following snippet
terraform {
  required_providers {
    onepassword = {
      source  = "1Password/onepassword"
    }
  }
}

provider "onepassword" {}

data "onepassword_vault" "test-vault" {
    name = "<your-vault-name>"
}

resource "onepassword_item" "test-secure-note" {
    vault = data.onepassword_vault.test-vault.uuid

    title = "Test TF Resource - Secure Note"
    category = "secure_note"

    note_value = <<EOT
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec et volutpat lorem. Integer quis felis porttitor, lobortis purus id, sodales nisi. Suspendisse dictum nibh lorem, vel dapibus sapien sodales pulvinar. Donec euismod, dolor vitae fermentum faucibus, elit orci ullamcorper nisi, eget ultrices turpis elit non odio. Integer dictum risus ante, finibus venenatis sem varius bibendum. Sed pellentesque ultrices diam vel viverra. Duis odio mi, malesuada quis luctus a, lacinia quis orci. Vestibulum hendrerit lorem a odio tristique, quis blandit purus sollicitudin.

    Nullam ut hendrerit lacus, at consectetur risus. Vestibulum at diam a arcu fermentum eleifend vel at mi. Cras auctor, massa in blandit rutrum, risus nibh euismod massa, quis porttitor libero mauris id nibh. Sed lobortis ipsum in ipsum dapibus, commodo eleifend velit dignissim. Donec tincidunt turpis mi, vitae venenatis urna laoreet vel. Integer ut scelerisque massa, at varius est. Proin porta quam a dolor euismod, quis iaculis odio dictum. Cras velit neque, vestibulum et consequat at, ultrices quis enim. Nulla sed augue ac odio scelerisque facilisis. Nunc ultricies tristique eros et ullamcorper. Curabitur et est eu nibh viverra feugiat. Pellentesque viverra vitae lacus sed consectetur. Aliquam nec tempor ipsum, quis dapibus quam. Nulla suscipit enim vel porta egestas. Nulla interdum congue erat at fermentum. Quisque viverra tincidunt metus non malesuada.
    EOT
}
  1. terraform apply
  2. See the error printed in the console.

Notes & Logs

@volodymyrZotov volodymyrZotov added the bug Something isn't working label May 17, 2024
@edif2008 edif2008 linked a pull request May 30, 2024 that will close this issue
1 task
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

Successfully merging a pull request may close this issue.

1 participant