Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse elasticache endpoint when creating elasticache newly #14

Open
jim80net opened this issue Jun 27, 2020 · 0 comments
Open

Comments

@jim80net
Copy link
Contributor

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.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant