cost-budget

binbashar/cost-budget/aws

Terraform Module HCL AWS

Terraform module which creates Cost Explorer budget with notifications with optional SNS resources on AWS https://registry.terraform.io/modules/binbashar/cost-budget

Install
module "cost-budget" {
source = "binbashar/cost-budget/aws"
version = "1.0.16"
}
plain text: /constructs/tfmod-binbashar-cost-budget-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

AWS Budget Billing module: terraform-aws-cost-mgmt-budget-notif Terraform module - creates an AWS Budget with notification via SNS enabled with optional sns topic creation (or use a pre-existing one) to alert when a U$S (currency actually configurable) budget forecasted threshold % is reached (currently 100% of the limit_amount). Provides an AWS budget resource (aws_budgets_budget). Budgets use the cost visualisation provided by Cost Explorer to show you the status of your budgets, to provide forecasts of your estimated costs, and to track your AWS usage, including your free tier usage. Releases - Versions: = 1.x.y (Terraform 0.12.x compatible -> WIP) - eg: https://registry.terraform.io/modules/binbashar/cost-budget/aws/1.0.0 Requirements | Name | Version | |------|---------| | terraform |

Inputs (23)
NameTypeDescriptionDefault
aws_envstringAWS environment you are deploying to. Will be appended to SNS topic and alarm na required
limit_amountstringThe amount of cost or usage being measured for a budget. required
time_period_startstringTime to start required
cost_type_include_creditboolA boolean value whether to include credits in the cost budget.false
cost_type_include_supportboolA boolean value whether to include support costs in the cost budget.true
cost_type_include_taxboolA boolean value whether to include support costs in the cost budget.true
sns_topic_arnslist(string)List of SNS topic ARNs to be used. If `create_sns_topic` is `true`, it merges th[]
tagsmap(string)A mapping of tags to assign to all resources{}
currencystringThe unit of measurement used for the budget forecast, actual spend, or budget th"USD"
time_unitstringThe length of time until a budget resets the actual and forecasted spend. Valid "MONTHLY"
time_period_endstringTime to endnull
cost_type_include_other_subscriptionboolA boolean value whether to include other subscription costs in the cost budget.true
cost_type_include_upfrontboolA boolean value whether to include support costs in the cost budget.true
cost_type_use_amortizedboolSpecifies whether a budget uses the amortized rate.false
create_sns_topicboolCreates a SNS Topic if `true`.true
cost_filters_servicestringBudget service cost filter, eg: Amazon Elastic Compute Cloud - Compute / Amazon null
cost_type_include_recurringboolA boolean value whether to include recurring costs in the cost budget.true
cost_type_include_refundboolA boolean value whether to include refunds in the cost budget.true
cost_type_include_subscriptionboolA boolean value whether to include subscriptions in the cost budget.true
cost_type_include_discountboolSpecifies whether a budget includes discounts.true
cost_type_use_blendedboolA boolean value whether to use blended costs in the cost budget.false
aws_sns_account_idstringThe AWS Account ID which will host the SNS topic as ownernull
notification_thresholdstring% Threshold when the notification should be sent."100"
Outputs (2)
budget_notifications — % Threshold when the notification should be sent.
sns_topic_arn — List of SNS Topic ARN sto be subscribed to in order to delivery the budget billing notifications
Resources (3)
aws_budgets_budgetaws_sns_topicaws_sns_topic_policy
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.16
Cloud AWS
★ Stars4
Forks9
Total downloads12.0k
Inputs23
Outputs2
Resources3
Examples8
LicenseMIT
Namespacebinbashar
Updated