nrkno / terraform-provider-lastpass

Terraform Lastpass provider
Apache License 2.0
61 stars 7 forks source link

How to debug an error running terraform apply #36

Closed MoogyG closed 3 years ago

MoogyG commented 3 years ago

I get this error :

Error: 

  on main.tf line 173, in resource "lastpass_secret" "mysecret":
 173: resource "lastpass_secret" "mysecret" {

while running terraform apply with a script containing this :

provider "lastpass" {
  username = var.lastpass_username
  password = var.lastpass_password
}

resource "lastpass_secret" "mysecret" {
  name = "My site"
}

I have no more informations while using TF_LOG="TRACE". I am using Terraform Cloud 0.13.4 with terraform-provider-lastpass 0.5.1. If I comment the block above, my script runs correctly

Any idea? How to add debug?

Thanks

martensson commented 3 years ago

Hi @MoogyG! I am sorry for the delay, but the provider has been updated to 0.5.2 with some improvements, also to logging. Please run another test and let me know if you still got problems. Kindly, Benjamin

MoogyG commented 3 years ago

It was my bad, I didn't install lastpass-cli in my terraform container. After that it works great! Thanks @martensson