I was wondering if the community could help. Essentially I am trying to execute a terraform file and would like it to proceed if a certain resource block fails to execute. I have tried using timeout but that just kills the entire process one the time out is reached.
The broader issue is I am trying to terminate an instance and trying to ssh first before termination. What I would like is if ssh time_out is reached proceed to destroy as opposed to stopping the destroy process if it cannot ssh within the time frame. Here is what I am using:
connection {
type = "ssh"
user = "root"
password = "${var.root_password}"
host = "${var.host}"
timeout = "10s"
}