When used with a non-pre-existing elasticache endpoint, the following error results.
Error: Error in function call
on .terraform/modules/example_slowlog_check/terraform-elasticache-slowlog-to-datadog-1.5.0/locals.tf line 7, in locals:
7: parsed_elasticache_endpoint = regex(local.search_replication_group, var.elasticache_endpoint)
|----------------
| local.search_replication_group is "(?P<first>[0-9A-Za-z_-]+)\\.(?P<second>[0-9A-Za-z_-]+)\\.{0,1}(?P<third>[0-9A-Za-z_]*)\\.(?P<region>[0-9A-Za-z_-]+)\\.cache\\.amazonaws\\.com:{0,1}(?P<port>[0-9]*)"
| var.elasticache_endpoint is ""
Call to function "regex" failed: pattern did not match any part of the given
string.