diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a0925b0..9eaabc7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
- rev: v1.68.1
+ rev: v1.73.0
hooks:
- id: terraform_fmt
- id: terraform_validate
@@ -23,7 +23,7 @@ repos:
- '--args=--only=terraform_standard_module_structure'
- '--args=--only=terraform_workspace_remote'
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.2.0
+ rev: v4.3.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
diff --git a/README.md b/README.md
index 6892a36..d7f19f8 100644
--- a/README.md
+++ b/README.md
@@ -81,7 +81,7 @@ No modules.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
-| [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 |
+| [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 |
| [create](#input\_create) | Determines whether a resources will be created | `bool` | `true` | no |
| [rule\_group\_namespaces](#input\_rule\_group\_namespaces) | A map of one or more rule group namespace definitions | `map(any)` | `{}` | no |
| [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no |
diff --git a/examples/complete/README.md b/examples/complete/README.md
index 9e6dbe3..77966f4 100644
--- a/examples/complete/README.md
+++ b/examples/complete/README.md
@@ -34,6 +34,7 @@ No providers.
| Name | Source | Version |
|------|--------|---------|
+| [default](#module\_default) | ../.. | n/a |
| [disabled](#module\_disabled) | ../.. | n/a |
| [prometheus](#module\_prometheus) | ../.. | n/a |
diff --git a/examples/complete/main.tf b/examples/complete/main.tf
index 935f7f5..567bcc9 100644
--- a/examples/complete/main.tf
+++ b/examples/complete/main.tf
@@ -11,12 +11,6 @@ locals {
# Prometheus Module
################################################################################
-module "disabled" {
- source = "../.."
-
- create = false
-}
-
module "prometheus" {
source = "../.."
@@ -53,3 +47,15 @@ module "prometheus" {
}
}
}
+
+module "disabled" {
+ source = "../.."
+
+ create = false
+}
+
+module "default" {
+ source = "../.."
+
+ workspace_alias = "${local.name}-default"
+}
diff --git a/variables.tf b/variables.tf
index fc741ac..b2473a4 100644
--- a/variables.tf
+++ b/variables.tf
@@ -27,13 +27,13 @@ variable "workspace_alias" {
variable "alert_manager_definition" {
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)"
type = string
- default = <<-EOF
- alertmanager_config: |
- route:
- receiver: 'default'
- receivers:
- - name: 'default'
- EOF
+ default = <<-EOT
+ alertmanager_config: |
+ route:
+ receiver: 'default'
+ receivers:
+ - name: 'default'
+ EOT
}
################################################################################