cost-billing-alarm

binbashar/cost-billing-alarm/aws

Terraform Module HCL AWS

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

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

AWS Billing Cloudwatch Alarm terraform module: terraform-aws-cost-mgmt-billing-alarm Adds a billing alert with optional sns topic creation (or use a pre-existing one) to alert when a U$S (currency actually configurable) billing threshold is reached. If aws_sns_topic_enabled = true then you'll still need to subscribe to the created SNS topic manually (please check Important Consderations section for detailed info). 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 | >= 0.12.28 | | aws | >= 2.70.0 | Providers | Name | Version | |------|---------| | aws | >= 2.70.0 | Modules No modules. Resources | Name | Type | |------|------| | aws_cloudw

Inputs (8)
NameTypeDescriptionDefault
aws_envstringAWS environment you are deploying to. Will be appended to SNS topic and alarm na required
monthly_billing_thresholdstringThe threshold for which estimated monthly charges will trigger the metric alarm. required
datapoints_to_alarmnumberThe number of datapoints that must be breaching to trigger the alarm.null
create_sns_topicboolCreates a SNS Topic if `true`.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{}
currencystringShort notation for currency type (e.g. USD, CAD, EUR)"USD"
aws_account_idstringAWS account idnull
Outputs (1)
sns_topic_arns — List of SNS Topic ARNs to be subscribed to in order to delivery the clodwatch billing alarms
Resources (2)
aws_cloudwatch_metric_alarmaws_sns_topic
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.17
Cloud AWS
★ Stars25
Forks13
Total downloads28.7k
Inputs8
Outputs1
Resources2
Examples4
LicenseMIT
Namespacebinbashar
Updated