Skip to content

Commit

Permalink
Adding alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLandauer authored Mar 27, 2023
1 parent 77fdd3a commit f1c6a41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,11 @@ resource "hetznerdns_record" "example_com_dkim" {
jsonencode(substr(local.dkim, 255, 255)),
""
])
# Alternative (works even if the string is longer than 510):
value = join("\"", [
"",
replace(local.dkim, "/(.{255})/", "$1\" \""),
" "
])
}
```

0 comments on commit f1c6a41

Please sign in to comment.