akamai / cli-terraform

Akamai CLI plugin Admin Support for multiple OpenAPI resource types
Apache License 2.0
21 stars 11 forks source link

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

Closed MaxPower87 closed 1 year ago

MaxPower87 commented 1 year ago

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

Slonimskaia commented 1 year ago

Hello @MaxPower87,

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

Best regards, Tatiana Slonimskaia

Slonimskaia commented 1 year ago

@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.

lkowalsk-akamai-com commented 1 year ago

@MaxPower87 this issue should be resolved with recent release.