Skip to content

A terraform module used to wrap the provisioning and notifications for cost anomaly detection

License

Notifications You must be signed in to change notification settings

appvia/terraform-aws-anomaly-detection

<<<<<<< Updated upstream Appvia Banner

Terraform Registry Latest Release Slack Community Contributors

Appvia Banner

Terraform Registry Latest Release Slack Community Contributors

Stashed changes

Github Actions

Terraform AWS Cost Anomaly Detection

Description

The purpose of this module is convenience wrapper for provisioning one or more Cost Anomaly monitors and setting up the notifications for them.

Usage

Add example usage here

module "cost_anomaly_detection" {
  source = "../../"

  monitors      = local.monitors
  sns_topic_arn = var.sns_topic_arn
  tags          = var.tags
}
}

Update Documentation

The terraform-docs utility is used to generate this README. Follow the below steps to update:

  1. Make changes to the .terraform-docs.yml file
  2. Fetch the terraform-docs binary (https://terraform-docs.io/user-guide/installation/)
  3. Run terraform-docs markdown table --output-file ${PWD}/README.md --output-mode inject .

Providers

Name Version
aws >= 5.0.0

Inputs

Name Description Type Default Required
monitors A collection of cost anomaly monitors to create
list(object({
name = string
# The name of the monitor
monitor_type = optional(string, "DIMENSIONAL")
# The type of monitor to create
monitor_dimension = optional(string, "DIMENSIONAL")
# The dimension to monitor
monitor_specification = optional(string, null)
# The specification to monitor
notify = optional(object({
frequency = string
# The frequency of notifications
threshold_expression = optional(any, null)
# The threshold expression to use for notifications
}), {
frequency = "DAILY"
})
}))
n/a yes
tags A map of tags to add to all resources map(string) n/a yes
sns_topic_arn The ARN of an existing SNS topic for notifications string null no

Outputs

No outputs.

About

A terraform module used to wrap the provisioning and notifications for cost anomaly detection

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published