-
Notifications
You must be signed in to change notification settings - Fork 418
Description
Datadog Terraform Provider Version
v3.81.0
Terraform Version
v1.14.2
What resources or data sources are affected?
- datadog_sensitive_data_scanner_standard_pattern
Terraform Configuration Files
data "datadog_sensitive_data_scanner_standard_pattern" "this" {
filter = "US Tax Identification Number Scanner"
}Relevant debug or panic output
No response
Expected Behavior
I want to be able to retrieve that library rule. Matching with contains + lowercase is bound to create side effects, I would at least expect an "exact match" mode.
Or even have the code first perform an exact match on the name and then fallback to a lowercase contains if needed.
Or even have another datasource that can retrieve all the rules & letting the dev handle the match myself.
Since Datadog can rename those rules at any point in time, with only the id being constant, providing more filter options is a must, or at least letting the users handles all the rules & find those they want could also work.
Actual Behavior
Error : Your query returned more than one result, please try a more specific search criteria
Steps to Reproduce
terraform plan
Important Factoids
There is currently one rule named exactly "US Tax Identification Number Scanner" and another named "Cyprus Tax Identification Number Scanner".
References
No response