Open georgeopenshaw opened 6 months ago
As a shoddy workaround a lifecycle such as the below "fixes" this:
lifecycle {
ignore_changes = [
query[0].metric,
]
}
But results in deprecated warning:
| Warning: Deprecated attribute
│
│ on modules/datadog/siem/rules/cloudtrail_s3_data_plane_events/main.tf line 51, in resource "datadog_security_monitoring_rule" "s3_data_plane":
│ 51: query[0].metric,
│
│ The attribute "metric" is deprecated. Refer to the provider documentation for details.
Datadog Terraform Provider Version
3.38.0
Terraform Version
1.7.4
What resources or data sources are affected?
resource "datadog_security_monitoring_rule"
Terraform Configuration Files
Relevant debug or panic output
No response
Expected Behavior
There should be no changes to be applied
Actual Behavior
On every run terraform attempts to remove the metric option from the query
Steps to Reproduce
Terraform Configuration Files
above with a version of the provider that still allows themetric
query optionmetrics
list optionImportant Factoids
No response
References
No response