Skip to content

Commit 0313f2c

Browse files
committed
Limit dkim record to 255 characters per chunk
1 parent 0af52eb commit 0313f2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dns/record_generator/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ locals {
105105
{
106106
type = "TXT"
107107
name = local.dkim_public_key != "" ? "default._domainkey.${var.name}" : var.name
108-
value = local.dkim_public_key != "" ? "\"v=DKIM1; k=rsa; p=${local.dkim_public_key}\"" : "No DKIM public key defined for this domain"
108+
value = local.dkim_public_key != "" ? join(" ", formatlist("\"%s\"", regexall(".{1,255}", "v=DKIM1; k=rsa; p=${local.dkim_public_key}"))) : "No DKIM public key defined for this domain"
109109
},
110110
{
111111
type = "TXT"

0 commit comments

Comments
 (0)