cost-billing-alarm

clouddrove/cost-billing-alarm/aws

Terraform Module HCL AWS

A Terraform module to create aws cost billing alarm resource on AWS with sns topic.

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

Terraform AWS cost billing alarm Terraform module to create aws cost billing alarm resource on AWS with sns topic. We eat, drink, sleep and most importantly love DevOps. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems . Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. This module is basically combination of Terraform open source and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining t

Inputs (28)
NameTypeDescriptionDefault
monthly_billing_thresholdstringThe threshold for which estimated monthly charges will trigger the metric alarm. required
environmentstringEnvironment (e.g. `prod`, `dev`, `staging`). required
kms_master_key_idstringThe ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CM""
repositorystringTerraform current module repo"https://github.com/clouddrove/terraform
label_orderlist(any)Label order, e.g. `name`,`application`.[ "name", "environment" ]
sns_topic_arnslist(string)List of SNS topic ARNs to be used. If `create_sns_topic` is `true`, it merges th[]
namestringName (e.g. `app` or `cluster`)."aws/billing"
lambda_success_feedback_role_arnstringThe IAM role permitted to receive success feedback for this topic.""
sqs_success_feedback_sample_ratenumberPercentage of success to sample.100
sqs_failure_feedback_role_arnstringIAM role for failure feedback.""
application_success_feedback_sample_ratenumberPercentage of success to sample.100
application_failure_feedback_role_arnstringIAM role for failure feedback.""
lambda_failure_feedback_role_arnstringIAM role for failure feedback.""
enableboolBoolean indicating whether or not to create sns module."true"
enabledboolSet to false to prevent the module from creating any resources.true
lambda_success_feedback_sample_ratenumberPercentage of success to sample.100
display_namestringThe display name for the SNS topic.""
http_success_feedback_role_arnstringThe IAM role permitted to receive success feedback for this topic.""
http_failure_feedback_role_arnstringIAM role for failure feedback.""
subscribersmap(object({ protocol = stRequired configuration for subscibres to SNS topic.{}
managedbystringManagedBy, eg 'CloudDrove'."[email protected]"
currencystringShort notation for currency type (e.g. USD, CAD, EUR)"USD"
Outputs (1)
sns_topic_arns — List of SNS Topic ARNs to be subscribed to in order to delivery the clodwatch billing alarms
Resources (3)
aws_cloudwatch_metric_alarmaws_sns_topicaws_sns_topic_subscription
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.2
Cloud AWS
★ Stars0
Forks0
Total downloads4.1k
Inputs28
Outputs1
Resources3
LicenseApache-2.0
Namespaceclouddrove
Updated