akamai / cli-terraform

Akamai CLI plugin Admin Support for multiple OpenAPI resource types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DXE-2587 bot manager rate policies "wrong input type" for "clientidentifier"

MaxPower87 opened this issue · comments

once we want to apply the config we 've created via terraform we get the following error message:

Issue:

│ Error: Title: Invalid Input Error; Type: https://problems.luna.akamaiapis.net/appsec/error-types/INVALID-INPUT-ERROR; Detail: The client identifier cannot be specified for Bot detection type

│ with module.security.akamai_appsec_rate_policy.post_requests_bot,
│ on modules/security/rate-policies.tf line 1, in resource "akamai_appsec_rate_policy" "post_requests_bot":
│ 1: resource "akamai_appsec_rate_policy" "post_requests_bot" {

Caused by:
this is connected to this config:

./rate-policies.tf: "clientIdentifier" : "",

Solution:
we can fix this by removing all occurrences where "clientIdentifier" = "", but these lines shouldn't be added in the first place

Hello @MaxPower87,

Thank you for reporting this issue. We will need some time for investigation

Best regards,
Tatiana Slonimskaia

@MaxPower87 , this error is cause due to discrepancy in the GET and POST api for rate policy. This fix will be available in upcoming terraform release, approximately at the end of May. This should resolve the error you are facing. Meanwhile, you will need to delete the line from the terraform configuration file (one time change required after running cli-terraform) until the release.

@MaxPower87 this issue should be resolved with recent release.