Skip to content

DXE-4548 regular_expression match_string cannot support $ by using --rules-as-hcl  #83

@jwiechmann

Description

@jwiechmann

% akamai terraform --version
akamai terraform version 1.19.0

The match string is using a variable in our Akamai property. In this case a Dollar $ character is present.

This command is used:
akamai terraform export-property --rules-as-hcl

This is a snippet of the code generation:
criterion {
regular_expression {
case_sensitive = true
match_string = "${ { user.MY_HEADER } }"

We got an error during terraform init

│ Error: Missing key/value separator

│ on rules.tf line 870, in data "akamai_property_rules_builder" "caching_rule":
│ 870: match_string = "${ { user.MY_HEADER } }"

│ Expected an equals sign ("=") to mark the beginning of the attribute value.

but we expected this
match_string = "$${{user.MY_HEADER}}"

% terraform --version
Terraform v1.10.2
on darwin_arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdelivery

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions