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
I am using terraform-exec with HCP terraform to manage some infra. When running terraform output command, logs show that there was a connection error and it's trying to re-establish the connection, eventually the command logs the correct output, but Terraform.Output method returns an error.
Expected behaviour: error returned by Terraform.Output should be nil.
Error returned by the library: invalid character 'T' looking for beginning of value
Logs:
time=2024-07-11T13:06:33.111Z level=INFO msg="[INFO] running Terraform command: /home/terraform/app/terraform output -no-color -json"
There was an error connecting to HCP Terraform. Please do not exit
Terraform to prevent data loss! Trying to restore the connection...
Still trying to restore the connection... (3s elapsed)
Still trying to restore the connection... (5s elapsed)
Still trying to restore the connection... (8s elapsed)
Still trying to restore the connection... (12s elapsed)
Still trying to restore the connection... (17s elapsed)
{
"ubuntu1_public_dns": {
"sensitive": false,
"type": "string",
"value": "<some-value-here>"
},
"ubuntu_public_dns": {
"sensitive": false,
"type": "string",
"value": "<some-value-here>"
}
}
It's probably failing when trying to convert the command's output into map[string]OutputMeta
The text was updated successfully, but these errors were encountered:
Ravikc
changed the title
Method returns error when command is successful
tfexec Terraform.Output method returns error when command is successful
Jul 16, 2024
I am using terraform-exec with HCP terraform to manage some infra. When running
terraform output
command, logs show that there was a connection error and it's trying to re-establish the connection, eventually the command logs the correct output, butTerraform.Output
method returns an error.Expected behaviour: error returned by
Terraform.Output
should be nil.Error returned by the library:
invalid character 'T' looking for beginning of value
Logs:
It's probably failing when trying to convert the command's output into
map[string]OutputMeta
The text was updated successfully, but these errors were encountered: