You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"datadog_logs_index""main" {
name="main"// 200m for prod, 1m for dev + stagedaily_limit=terraform.workspace=="prod"?200000000:1000000//including example filters we run in case it is meaningful to the bug. filter {
query=terraform.workspace=="prod"?"*":"XXXXXXXXXXXXXXXXX"
}
exclusion_filter {
is_enabled=truename="Filter example"filter {
query="service:XXXXXX @@message:\"XXXXXXXXXXXX\""sample_rate=1
}
}
}
Relevant debug or panic output
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
~ update in-place
Terraform will perform the following actions:
# datadog_logs_index.main will be updated in-place
~ resource "datadog_logs_index" "main" {
id = "main"
name = "main"
# (5 unchanged attributes hidden)
~ filter {
// this update in our case is a `-` -> `!` change in the query.
~ query = "XXXXXXXXXXXXXXXXX" -> "XXXXXXXXXXXXXXXXX"
}
# (4 unchanged blocks hidden)
}
Expected Behavior
I would expect that the disable_daily_limit to be set back to false based on the documentation:
If false or omitted, the index's current daily_limit is maintained.
If we set it to false it behaves as expected, it is just an issue when omitted which documentation seems to indicate it should be the same behavior.
Actual Behavior
The plan/apply does not set the disable_daily_limit to be false, it does nothing.
Steps to Reproduce
create an log_index with daily limit in terraform
log into the datadog console
disable the daily limit
re-plan the log_index, observe it does not re-enable the daily limit
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Datadog Terraform Provider Version
3.62.0
Terraform Version
v1.6.5
What resources or data sources are affected?
datadog_logs_index
Terraform Configuration Files
Relevant debug or panic output
Expected Behavior
I would expect that the disable_daily_limit to be set back to false based on the documentation:
If we set it to false it behaves as expected, it is just an issue when omitted which documentation seems to indicate it should be the same behavior.
Actual Behavior
The plan/apply does not set the disable_daily_limit to be false, it does nothing.
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: