From 1691c6fa760f5a44bc30e733349294035cde502a Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 26 Apr 2023 01:26:03 +0100 Subject: [PATCH] fix(docs): correctly describe mx variable --- README.md | 2 +- variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 02665bb..1025a71 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ No modules. | [mta_sts_max_age](#input_mta_sts_max_age) | Maximum lifetime of the policy in seconds, up to 31557600, defaults to 604800 (1 week) | `number` | `604800` | no | | [mta_sts_mode](#input_mta_sts_mode) | MTA policy mode, https://tools.ietf.org/html/rfc8461#section-5 | `string` | `"testing"` | no | | [mta_sts_mx](#input_mta_sts_mx) | Additional permitted MX hosts for the MTA STS policy. | `list(string)` | `[]` | no | -| [mx](#input_mx) | A map representing the MX records. Key is the priority and value is the mail server hostname. | `map(number)` | n/a | yes | +| [mx](#input_mx) | A map representing the MX records. Key is the mail server hostname and value is the priority. | `map(number)` | n/a | yes | | [mx_subdomains](#input_mx_subdomains) | List of sub-domains to also apply MX records to. | `list(string)` | `[]` | no | | [record_ttl](#input_record_ttl) | TTL for DNS records. `1` is auto. Default is `1`. | `number` | `1` | no | | [spf_terms](#input_spf_terms) | List of SPF terms that should be included in the SPF TXT record. | `list(string)` |
[
"mx",
"a",
"~all"
]
| no | diff --git a/variables.tf b/variables.tf index 285a419..7bb633e 100644 --- a/variables.tf +++ b/variables.tf @@ -25,7 +25,7 @@ variable "record_ttl" { variable "mx" { type = map(number) - description = "A map representing the MX records. Key is the priority and value is the mail server hostname." + description = "A map representing the MX records. Key is the mail server hostname and value is the priority." validation { condition = length(var.mx) > 0