From 17b507fa2d131c79c1ec0bd93df943c177887466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Respaut?= Date: Mon, 30 Oct 2017 15:59:15 +0100 Subject: [PATCH] MON-82: A generic module for DataDog Alerting (Pager) message --- .gitignore | 1 + common/alerting-message/inputs.tf | 7 +++++++ common/alerting-message/main.tf | 13 +++++++++++++ common/alerting-message/output.tf | 3 +++ 4 files changed, 24 insertions(+) create mode 100644 common/alerting-message/inputs.tf create mode 100644 common/alerting-message/main.tf create mode 100644 common/alerting-message/output.tf diff --git a/.gitignore b/.gitignore index 086253b..a34147e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Ignore all volatile files **/.terraform/modules +**/.terraform/plugins **/terraform.tfstate*.backup # Ignore all credentials files diff --git a/common/alerting-message/inputs.tf b/common/alerting-message/inputs.tf new file mode 100644 index 0000000..c819f96 --- /dev/null +++ b/common/alerting-message/inputs.tf @@ -0,0 +1,7 @@ +variable "oncall_24x7" { + type = "string" +} + +variable "oncall_office_hours" { + type = "string" +} diff --git a/common/alerting-message/main.tf b/common/alerting-message/main.tf new file mode 100644 index 0000000..abb3cc3 --- /dev/null +++ b/common/alerting-message/main.tf @@ -0,0 +1,13 @@ +data "template_file" "alerting-message" { + template = <