diff --git a/cloud/aws/vpn/inputs.tf b/cloud/aws/vpn/inputs.tf deleted file mode 120000 index a68ace3..0000000 --- a/cloud/aws/vpn/inputs.tf +++ /dev/null @@ -1 +0,0 @@ -../../../inputs.tf \ No newline at end of file diff --git a/cloud/aws/vpn/inputs.tf b/cloud/aws/vpn/inputs.tf new file mode 100644 index 0000000..ebcbed7 --- /dev/null +++ b/cloud/aws/vpn/inputs.tf @@ -0,0 +1,19 @@ +variable env {} + +variable "vpn_tunnel_address" { + description = "List the VPN tunnels you want to monitor" + type = "list" + default = [] +} + +variable "vpn_config" { + description = "Ok means that both tunnels are up, warning means only one tunnel is up and critical means that both tunnels are down " + type = "map" + + default = { + delay = 900 + warning = 1 + critical = 0 + ok = 2 + } +} diff --git a/cloud/aws/vpn/monitors-vpn.tf b/cloud/aws/vpn/monitors-vpn.tf index bfa6a8f..e2a5492 100644 --- a/cloud/aws/vpn/monitors-vpn.tf +++ b/cloud/aws/vpn/monitors-vpn.tf @@ -24,7 +24,7 @@ resource "datadog_monitor" "VPN_status" { } notify_no_data = true - renotify_interval = 15 + renotify_interval = 0 evaluation_delay = "${var.vpn_config["delay"]}" notify_audit = false timeout_h = 0 diff --git a/inputs.tf b/inputs.tf index ac95ce7..c0e504e 100644 --- a/inputs.tf +++ b/inputs.tf @@ -109,25 +109,6 @@ variable "elb_backend_latency" { } } -## VPN -variable "vpn_tunnel_address" { - description = "List the VPN tunnels you want to monitor" - type = "list" - default = [] -} - -variable "vpn_config" { - description = "Ok means that both tunnels are up, warning means only one tunnel is up and critical means that both tunnels are down " - type = "map" - - default = { - delay = 900 - warning = 1 - critical = 0 - ok = 2 - } -} - ##apache nginx php variable "dd_nginx" { default = "disabled"