Skip to content

DNXLabs/terraform-aws-billing

Repository files navigation

terraform-aws-billing

Lint Status LICENSE

This terraform module is a AWS Billing Module that add billing related aws resources.

The following resources will be created:

  • IAM billing role
  • AWS Budget
  • SNS Budget Alarm

In addition you have the option to:

  • Enable or not AWS Budget cost control
  • Set The amount of cost or usage being measured for a budget
  • Set The length of time until a budget resets the actual and forecasted spend. Valid values: MONTHLY, QUARTERLY, ANNUALLY.
  • Set The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
  • E-Mail addresses to notify the budget
  • Enable or not AWS Chatbot. If true, will create aws chatboot and integrate to slack
  • Set Slack channel id to send budget notfication using AWS Chatbot
  • Set Slack workspace id to send budget notfication using AWS Chatbot
  • Set the Maximum CLI/API session duration

AWS Billing HLD

Requirements

Name Version
terraform >= 0.12.0

Providers

Name Version
aws n/a

Inputs

Name Description Type Default Required
budget_ammount The amount of cost or usage being measured for a budget. string "0" no
budget_email E-Mail addresses to notify. string "" no
budget_threshold_percentage The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. string "60" no
budget_time The length of time until a budget resets the actual and forecasted spend. Valid values: MONTHLY, QUARTERLY, ANNUALLY. string "MONTHLY" no
enable_budget Flag to enable AWS Budget cost control string "false" no
enable_chatbot_slack If true, will create aws chatboot and integrate to slack string "false" no
idp_account_id Account ID for IDP account to allow assuming normal users for billing any n/a yes
notification_type Budget notification type - The Forecast option is not available for Daily Budgets because the daily budgeted amount is always evaluated against the day before. string "ACTUAL" no
org_name Name for this organization any n/a yes
role_max_session_duration Maximum CLI/API session duration string "43200" no
slack_channel_id Sclack channel id to send budget notfication using AWS Chatbot string "" no
slack_workspace_id Sclack workspace id to send budget notfication using AWS Chatbot string "" no

Outputs

No output.

Authors

Module managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.