From fa9a5c3b3d913ce6016a51e1d71d54cffc551b37 Mon Sep 17 00:00:00 2001 From: Ahmed Fourti Date: Thu, 30 Nov 2017 11:00:58 +0100 Subject: [PATCH] MON-91 Added VPN state check --- cloud/aws/vpn/inputs.tf | 1 + cloud/aws/vpn/monitors-vpn.tf | 36 +++++++++++++++++++++++++++++++++++ inputs.tf | 27 +++++++++++++++++++++++++- 3 files changed, 63 insertions(+), 1 deletion(-) create mode 120000 cloud/aws/vpn/inputs.tf create mode 100644 cloud/aws/vpn/monitors-vpn.tf diff --git a/cloud/aws/vpn/inputs.tf b/cloud/aws/vpn/inputs.tf new file mode 120000 index 0000000..a68ace3 --- /dev/null +++ b/cloud/aws/vpn/inputs.tf @@ -0,0 +1 @@ +../../../inputs.tf \ No newline at end of file diff --git a/cloud/aws/vpn/monitors-vpn.tf b/cloud/aws/vpn/monitors-vpn.tf new file mode 100644 index 0000000..bfa6a8f --- /dev/null +++ b/cloud/aws/vpn/monitors-vpn.tf @@ -0,0 +1,36 @@ +module "message" { + source = "../../common/alerting-message" + oncall_24x7 = "${var.hno_escalation_group}" + oncall_office_hours = "${var.ho_escalation_group}" +} + +resource "datadog_monitor" "VPN_status" { + name = "[${var.env}] VPN Down {{ tunnelipaddress }}" + message = "${module.message.alerting-message}" + + query = <