Skip to content

Fix regexes in acme_certificate module#98

Merged
cmbuckley merged 2 commits intomainfrom
fix-acme-regexes
Oct 5, 2023
Merged

Fix regexes in acme_certificate module#98
cmbuckley merged 2 commits intomainfrom
fix-acme-regexes

Conversation

@cmbuckley
Copy link
Contributor

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.

Copy link
Member

@Dusty-Meg Dusty-Meg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cmbuckley cmbuckley merged commit 7fc5a77 into main Oct 5, 2023
@cmbuckley cmbuckley deleted the fix-acme-regexes branch October 5, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants