diff --git a/website/docs/d/tunnel-close.html.markdown b/website/docs/d/tunnel_close.html.markdown similarity index 100% rename from website/docs/d/tunnel-close.html.markdown rename to website/docs/d/tunnel_close.html.markdown diff --git a/website/docs/index.html.markdown b/website/docs/index.html.markdown index 415f19c..61bddf8 100644 --- a/website/docs/index.html.markdown +++ b/website/docs/index.html.markdown @@ -32,4 +32,20 @@ data "ssh_tunnel" "consul" { port = 8500 } } -``` \ No newline at end of file + +provider "consul" { + address = data.ssh_tunnel.consul.local.0.address + scheme = "http" +} + +data "consul_keys" "keys" { + key { + name = "revision" + path = "secrets/api/password" + } +} + +data "ssh_tunnel_close" "consul" { + depends_on = [data.consul_keys.keys] +} +```