Skip to content

Commit a66025f

Browse files
authored
fix: Add default value for alert_manager_definition (#3)
1 parent 0751cf7 commit a66025f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ No modules.
8181

8282
| Name | Description | Type | Default | Required |
8383
|------|-------------|------|---------|:--------:|
84-
| <a name="input_alert_manager_definition"></a> [alert\_manager\_definition](#input\_alert\_manager\_definition) | The alert manager definition that you want to be applied. See more in the [AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html) | `string` | `null` | no |
84+
| <a name="input_alert_manager_definition"></a> [alert\_manager\_definition](#input\_alert\_manager\_definition) | The alert manager definition that you want to be applied. See more in the [AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html) | `string` | `"alertmanager_config: |\nroute:\n receiver: 'default'\nreceivers:\n - name: 'default'\n"` | no |
8585
| <a name="input_create"></a> [create](#input\_create) | Determines whether a resources will be created | `bool` | `true` | no |
8686
| <a name="input_rule_group_namespaces"></a> [rule\_group\_namespaces](#input\_rule\_group\_namespaces) | A map of one or more rule group namespace definitions | `map(any)` | `{}` | no |
8787
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no |

variables.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ variable "workspace_alias" {
2727
variable "alert_manager_definition" {
2828
description = "The alert manager definition that you want to be applied. See more in the [AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html)"
2929
type = string
30-
default = null
30+
default = <<-EOF
31+
alertmanager_config: |
32+
route:
33+
receiver: 'default'
34+
receivers:
35+
- name: 'default'
36+
EOF
3137
}
3238

3339
################################################################################

0 commit comments

Comments
 (0)