You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
}
terraform apply
See the error printed in the console.
Notes & Logs
The text was updated successfully, but these errors were encountered:
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: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
terraform apply
Notes & Logs
The text was updated successfully, but these errors were encountered: