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

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

Open
jwiechmann opened this issue Dec 19, 2024 · 1 comment

Comments

@jwiechmann
Copy link

jwiechmann commented Dec 19, 2024

% 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

@lsadlon lsadlon changed the title regular_expression match_string cannot support $ by using --rules-as-hcl DXE-4548 regular_expression match_string cannot support $ by using --rules-as-hcl Dec 19, 2024
@lsadlon
Copy link

lsadlon commented Dec 19, 2024

Hi @jwiechmann

Thanks for reporting this issue. I was able to reproduce it and created internal ticket for fixing it.

BR,
Lukasz

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

No branches or pull requests

3 participants