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..f20bef7 --- /dev/null +++ b/common/alerting-message/inputs.tf @@ -0,0 +1,17 @@ +variable "oncall_24x7" { + type = "string" +} + +variable "oncall_office_hours" { + type = "string" +} + +variable "prepend_text" { + type = "string" + default = "" +} + +variable "append_text" { + type = "string" + default = "" +} diff --git a/common/alerting-message/main.tf b/common/alerting-message/main.tf new file mode 100644 index 0000000..3b3c84b --- /dev/null +++ b/common/alerting-message/main.tf @@ -0,0 +1,15 @@ +data "template_file" "alerting-message" { + template = <