TF_LOG=TRACE TF_LOG_PATH=log terraform apply
╷
│ Error: Error making request: Get "http://localhost:41183/get": dial tcp 127.0.0.1:41183: connect: connection refused
│
│ with data.http.example,
│ on main.tf line 26, in data "http" "example":
│ 26: data "http" "example" {
│
╵
I was trying to run the example provided in this repository. I've made two changes (full file attached) -
0.0.2
But I could not run a successful
terraform apply
. Seems like the ssh tunnel getting closed before using it?Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
Full stack trace - https://gist.github.com/shimulch/2c296d4bbebdf3196532b8339859904a
Expected Behavior
It should connect to
httpbin
viassh
tunnel.Actual Behavior
jumphost provider exited.
Steps to Reproduce
docker-compose up -d
ssh terraform@localhost -p 2222
to ensure the ssh service is upterraform init
terraform apply