aws_budgets_notifications_with_terraform/apprunner_monthly_account_budget.tf
Lines 1 to 30 in 78ee496
resource "aws_budgets_budget" "apprunner_monthly_budget" { | |
name = "My AppRunner Monthly Budget" | |
budget_type = "COST" | |
limit_amount = "100" | |
limit_unit = "USD" | |
time_unit = "MONTHLY" | |
cost_filter { | |
name = "Service" | |
values = [ | |
"AWS App Runner", | |
] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 90 | |
threshold_type = "PERCENTAGE" | |
notification_type = "ACTUAL" | |
subscriber_email_addresses = ["email@my.team"] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 110 | |
threshold_type = "PERCENTAGE" | |
notification_type = "FORECASTED" | |
subscriber_email_addresses = ["email@my.team"] | |
} | |
} |
resource "aws_budgets_budget" "ec2_monthly_budget" { | |
name = "My EC2 Monthly Budget" | |
budget_type = "COST" | |
limit_amount = "400" | |
limit_unit = "USD" | |
time_unit = "MONTHLY" | |
cost_filter { | |
name = "Service" | |
values = [ | |
"Amazon Elastic Compute Cloud - Compute", | |
] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 90 | |
threshold_type = "PERCENTAGE" | |
notification_type = "ACTUAL" | |
subscriber_email_addresses = ["email@my.team"] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 100 | |
threshold_type = "PERCENTAGE" | |
notification_type = "FORECASTED" | |
subscriber_email_addresses = ["email@my.team"] | |
} | |
} |
resource "aws_budgets_budget" "s3_monthly_budget" { | |
name = "My S3 Monthly Budget" | |
budget_type = "COST" | |
limit_amount = "100" | |
limit_unit = "USD" | |
time_unit = "MONTHLY" | |
cost_filter { | |
name = "Service" | |
values = [ | |
"Amazon Simple Storage Service", | |
] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 90 | |
threshold_type = "PERCENTAGE" | |
notification_type = "ACTUAL" | |
subscriber_email_addresses = ["email@my.team"] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 110 | |
threshold_type = "PERCENTAGE" | |
notification_type = "FORECASTED" | |
subscriber_email_addresses = ["email@my.team"] | |
} | |
} |
aws_budgets_notifications_with_terraform/apprunner_monthly_account_budget.tf
Lines 1 to 30 in 51c44a1
resource "aws_budgets_budget" "apprunner_monthly_budget" { | |
name = "My AppRunner Monthly Budget" | |
budget_type = "COST" | |
limit_amount = "100" | |
limit_unit = "USD" | |
time_unit = "MONTHLY" | |
cost_filter { | |
name = "Service" | |
values = [ | |
"AWS App Runner", | |
] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 90 | |
threshold_type = "PERCENTAGE" | |
notification_type = "ACTUAL" | |
subscriber_email_addresses = ["email@my.team"] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 110 | |
threshold_type = "PERCENTAGE" | |
notification_type = "FORECASTED" | |
subscriber_email_addresses = ["email@my.team"] | |
} | |
} |
resource "aws_budgets_budget" "my_production_monthly_budget" { | |
name = "My Production Monthly Budget" | |
budget_type = "COST" | |
limit_amount = "400" | |
limit_unit = "USD" | |
time_unit = "MONTHLY" | |
cost_filter { | |
name = "TagKeyValue" | |
values = [ | |
"environment$Production", | |
] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 90 | |
threshold_type = "PERCENTAGE" | |
notification_type = "ACTUAL" | |
subscriber_email_addresses = [ | |
"email1@my.team", | |
"email2@my.team" | |
] | |
} | |
notification { | |
comparison_operator = "GREATER_THAN" | |
threshold = 110 | |
threshold_type = "PERCENTAGE" | |
notification_type = "FORECASTED" | |
subscriber_email_addresses = [ | |
"email1@my.team", | |
"email2@my.team" | |
] | |
} | |
} |