answerdigital / terraform-modules

The repo for the infrastructure as code
MIT License
3 stars 4 forks source link

Fix regexes in acme_certificate module #98

Closed cmbuckley closed 1 year ago

cmbuckley commented 1 year ago

Latest version of terraform is doing a better job of validation, and spots that match is an unknown function. Unfortunately because it's masked with can, the message is still cryptic (it displays the error_message rather than the internal "Call to unknown function").

Fixed the uses of match to regex. Also, terraform's regex flavour does not support lookarounds, so have flipped the domain check.