From 37c4198491cef875da306e05212a70d99b5a84bc Mon Sep 17 00:00:00 2001 From: AndrewChubatiuk Date: Sat, 8 May 2021 00:56:31 +0300 Subject: [PATCH] updated website --- ...tml.markdown => tunnel_close.html.markdown} | 0 website/docs/index.html.markdown | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) rename website/docs/d/{tunnel-close.html.markdown => tunnel_close.html.markdown} (100%) 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] +} +```