Skip to content

Commit 2bfb4ab

Browse files
Zvikanbryantbiggs
andauthored
fix: Correct alert manager default definition (#4)
Co-authored-by: Bryant Biggs <[email protected]>
1 parent ad40c3b commit 2bfb4ab

File tree

5 files changed

+23
-16
lines changed

5 files changed

+23
-16
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.68.1
3+
rev: v1.73.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
@@ -23,7 +23,7 @@ repos:
2323
- '--args=--only=terraform_standard_module_structure'
2424
- '--args=--only=terraform_workspace_remote'
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.2.0
26+
rev: v4.3.0
2727
hooks:
2828
- id: check-merge-conflict
2929
- id: end-of-file-fixer

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` | `"alertmanager_config: |\nroute:\n receiver: 'default'\nreceivers:\n - name: 'default'\n"` | 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: |\n route:\n receiver: 'default'\n receivers:\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 |

examples/complete/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ No providers.
3434

3535
| Name | Source | Version |
3636
|------|--------|---------|
37+
| <a name="module_default"></a> [default](#module\_default) | ../.. | n/a |
3738
| <a name="module_disabled"></a> [disabled](#module\_disabled) | ../.. | n/a |
3839
| <a name="module_prometheus"></a> [prometheus](#module\_prometheus) | ../.. | n/a |
3940

examples/complete/main.tf

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ locals {
1111
# Prometheus Module
1212
################################################################################
1313

14-
module "disabled" {
15-
source = "../.."
16-
17-
create = false
18-
}
19-
2014
module "prometheus" {
2115
source = "../.."
2216

@@ -53,3 +47,15 @@ module "prometheus" {
5347
}
5448
}
5549
}
50+
51+
module "disabled" {
52+
source = "../.."
53+
54+
create = false
55+
}
56+
57+
module "default" {
58+
source = "../.."
59+
60+
workspace_alias = "${local.name}-default"
61+
}

variables.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +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 = <<-EOF
31-
alertmanager_config: |
32-
route:
33-
receiver: 'default'
34-
receivers:
35-
- name: 'default'
36-
EOF
30+
default = <<-EOT
31+
alertmanager_config: |
32+
route:
33+
receiver: 'default'
34+
receivers:
35+
- name: 'default'
36+
EOT
3737
}
3838

3939
################################################################################

0 commit comments

Comments
 (0)