Skip to content

Unable to parse elasticache endpoint when creating elasticache newly #14

@jim80net

Description

@jim80net

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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions