From 43c5c046ec7054c94e3ad6f8bc00058f8f673240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 17 May 2022 18:25:21 +0200 Subject: [PATCH] add aws budget alert --- aws-budget.tf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 aws-budget.tf diff --git a/aws-budget.tf b/aws-budget.tf new file mode 100644 index 0000000..c8a4dde --- /dev/null +++ b/aws-budget.tf @@ -0,0 +1,15 @@ +resource "aws_budgets_budget" "aws-budget" { + name = "budget-monthly" + budget_type = "COST" + limit_amount = "5" + limit_unit = "EUR" + time_unit = "MONTHLY" + + notification { + comparison_operator = "GREATER_THAN" + threshold = 85 + threshold_type = "PERCENTAGE" + notification_type = "FORECASTED" + subscriber_email_addresses = ["tormakristof@tormakristof.eu"] + } +}