This project is about creating a cost alarm infrastructure as code using Terraform for an SRE (Site Reliability Engineering) formation. The project includes a module for creating an SNS topic to send email notifications when the cost threshold is exceeded.
No requirements.
Name | Version |
---|---|
aws | 5.22.0 |
Name | Source | Version |
---|---|---|
sns_email_topic | ./modules/tf_sns_email | n/a |
Name | Type |
---|---|
aws_cloudwatch_metric_alarm.cost_alert | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
alarm_description | The description of the alarm. | string |
"This metric monitors estimated charges and sends an email when the threshold is exceeded." |
no |
alarm_name | The name of the alarm. | string |
"Cost Alert" |
no |
comparison_operator | The arithmetic operation to use when comparing the specified statistic and threshold. | string |
"GreaterThanThreshold" |
no |
email_address_1 | n/a | string |
"[email protected]" |
no |
email_address_2 | n/a | string |
"[email protected]" |
no |
evaluation_periods | The number of periods over which data is compared to the specified threshold. | number |
1 |
no |
metric_name | The name of the metric associated with the alarm. | string |
"EstimatedCharges" |
no |
namespace | The namespace of the metric associated with the alarm. | string |
"AWS/Billing" |
no |
period | The length of time in seconds that the metric associated with the alarm is evaluated. | number |
86400 |
no |
region | Defines the AWS region. | string |
"us-east-1" |
no |
sns_topic_name | SNS Topic Variables | string |
"cost_alert" |
no |
statistic | The statistic to apply to the metric associated with the alarm. | string |
"Maximum" |
no |
threshold | The value against which the specified statistic is compared. | number |
1 |
no |
No outputs.