Closed willnewby closed 3 years ago
I have a similar issue when trying to update the rate limit rule. How to deal with it? Is there any fix for this issue?
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.site_rule.sigsci_site_rule.rule will be updated in-place
~ resource "sigsci_site_rule" "rule" {
id = "69c2000000001d2c45c95"
~ rate_limit = {
~ "threshold" = "7" -> "8"
# (2 unchanged elements hidden)
}
# (6 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
module.site_rule.sigsci_site_rule.rule: Modifying...
╷
│ Error: Validation failed - rate limit data required for rate limit rule
│
│ with module.site_rule.sigsci_site_rule.rule,
│ on ../../modules/site_rule/main.tf line 5, in resource "sigsci_site_rule" "rule":
│ 5: resource "sigsci_site_rule" "rule" {
│
╵
Hello! I'm attempting to change a Rule action via the Terraform provider. I understand that SigSci doesn't allow you to update existing rules, so I'm curious why the terraform provider doesn't force a re-creation on the rule, rather than attempting to update it in-place and failing? It seems to force a replace for site-level changes (like name/etc).
Here's the command and output I'm seeing.