The purpose of this module is convenience wrapper for provisioning one or more Cost Anomaly monitors and setting up the nofitications for them.
Add example usage here
module "cost_anomaly_detection" {
source = "../../"
monitors = local.monitors
notifications = {
email = {
addresses = var.notification_email_addresses
}
slack = {
channel = jsondecode(data.aws_secretsmanager_secret_version.notification.secret_string).channel
webhook_url = jsondecode(data.aws_secretsmanager_secret_version.notification.secret_string).webhook_url
}
}
tags = var.tags
}
}
The terraform-docs
utility is used to generate this README. Follow the below steps to update:
- Make changes to the
.terraform-docs.yml
file - Fetch the
terraform-docs
binary (https://terraform-docs.io/user-guide/installation/) - Run
terraform-docs markdown table --output-file ${PWD}/README.md --output-mode inject .
Name | Version |
---|---|
terraform | >= 1.0.7 |
aws | >= 5.0.0 |
Name | Version |
---|---|
aws | 5.47.0 |
Name | Source | Version |
---|---|---|
notifications | appvia/notifications/aws | 0.1.4 |
Name | Type |
---|---|
aws_ce_anomaly_monitor.this | resource |
aws_ce_anomaly_subscription.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
create_sns_topic | Indicates whether to create an SNS topic for notifications | bool |
true |
no |
monitors | A collection of cost anomaly monitors to create | list(object({ |
n/a | yes |
notifications | The configuration of the notification | object({ |
n/a | yes |
sns_topic_name | The name of an existing or new SNS topic for notifications | string |
"cost-anomaly-notifications" |
no |
tags | A map of tags to add to all resources | map(string) |
n/a | yes |
No outputs.