Error: The terraform-provider-datadog_v3.28.0 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
Thanks for the report. This will be closed by #2041 . In the meantime, you can remove the empty strings in the excluded_namespaces if its not useful to avoid the panic.
Datadog Terraform Provider Version
v3.28.0
Terraform Version
v1.1.9, I also tested with 1.3.2, same problem
What resources or data sources are affected?
datadog_sensitive_data_scanner_rule
Terraform Configuration Files
Relevant debug or panic output
Stack trace from the terraform-provider-datadog_v3.28.0 plugin:
panic: interface conversion: interface {} is nil, not string
goroutine 386 [running]: github.com/terraform-providers/terraform-provider-datadog/datadog.buildSensitiveDataScannerRuleAttributes(0x80000000000?) github.com/terraform-providers/terraform-provider-datadog/datadog/resource_datadog_sensitive_data_scanner_rule.go:226 +0x966 github.com/terraform-providers/terraform-provider-datadog/datadog.resourceDatadogSensitiveDataScannerRuleCreate({0x1bbcd60?, 0xc001723080?}, 0x0?, {0x1564440?, 0xc000ab7410?}) github.com/terraform-providers/terraform-provider-datadog/datadog/resource_datadog_sensitive_data_scanner_rule.go:161 +0x11a github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(Resource).create(0xc0009749a0, {0x1bbcd60, 0xc001723080}, 0xd?, {0x1564440, 0xc000ab7410}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.26.1/helper/schema/resource.go:707 +0x12e github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(Resource).Apply(0xc0009749a0, {0x1bbcd60, 0xc001723080}, 0xc000b2b930, 0xc000b3b680, {0x1564440, 0xc000ab7410}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.26.1/helper/schema/resource.go:837 +0xa85 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(GRPCProviderServer).ApplyResourceChange(0xc000010d08, {0x1bbcd60?, 0xc001722f60?}, 0xc001724320) github.com/hashicorp/terraform-plugin-sdk/v2@v2.26.1/helper/schema/grpc_provider.go:1021 +0xe8d github.com/hashicorp/terraform-plugin-mux/tf5muxserver.muxServer.ApplyResourceChange({0xc000a00ff0, 0xc000a01050, {0xc000ca33e0, 0x2, 0x2}, {0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...) github.com/hashicorp/terraform-plugin-mux@v0.8.0/tf5muxserver/mux_server_ApplyResourceChange.go:27 +0x102 github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(server).ApplyResourceChange(0xc000c52f00, {0x1bbcd60?, 0xc001722240?}, 0xc001708850) github.com/hashicorp/terraform-plugin-go@v0.15.0/tfprotov5/tf5server/server.go:818 +0x574 github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1847320?, 0xc000c52f00}, {0x1bbcd60, 0xc001722240}, 0xc0017087e0, 0x0) github.com/hashicorp/terraform-plugin-go@v0.15.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:419 +0x170 google.golang.org/grpc.(Server).processUnaryRPC(0xc0007281e0, {0x1bc2140, 0xc000bce000}, 0xc00171cb40, 0xc000d94a50, 0x2869900, 0x0) google.golang.org/grpc@v1.54.0/server.go:1345 +0xdf0 google.golang.org/grpc.(Server).handleStream(0xc0007281e0, {0x1bc2140, 0xc000bce000}, 0xc00171cb40, 0x0) google.golang.org/grpc@v1.54.0/server.go:1722 +0xa2f google.golang.org/grpc.(Server).serveStreams.func1.2() google.golang.org/grpc@v1.54.0/server.go:966 +0x98 created by google.golang.org/grpc.(Server).serveStreams.func1 google.golang.org/grpc@v1.54.0/server.go:964 +0x28a
Error: The terraform-provider-datadog_v3.28.0 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely helpful if you could report the crash with the plugin's maintainers so that it can be fixed. The output above should help diagnose the issue.
Expected Behavior
24 SDS Rules should be creted
Actual Behavior
The plugin crashes
Steps to Reproduce
terraform apply
Important Factoids
This is running in TFE.
References
No response