Unable to create Datadog log stream
paweusz opened this issue · 3 comments
paweusz commented
Description
Creating Auth0 log stream for Datadog results in error while applying terraform plan.
Terraform Version
Terraform v1.0.5
- provider registry.terraform.io/alexkappa/auth0 v0.21.0
Affected Resource(s)
- resource "auth0_log_stream"
Terraform Configuration Files
resource "auth0_log_stream" "datadog_stream" {
name = "Datadog_log_stream"
type = "datadog"
sink {
datadog_region = "US"
datadog_api_key = "xxx"
}
}
Expected Behavior
Terraform should create log stream in auth0.
Actual Behavior
While executing terraform apply there's: Error: 400 Bad Request: Payload validation error: 'Data does not match any schemas from 'oneOf''.
Steps to Reproduce
terraform apply
Debug Output
https://gist.github.com/paweusz/1a777d8a83c317394d340d69fbae35ce
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
alekc commented
Use lower case
resource "auth0_log_stream" "datadog_stream" {
name = "Datadog_log_stream"
type = "datadog"
sink {
datadog_region = "us"
datadog_api_key = "xxx"
}
}
See alekc/terraform-provider-auth0#8 for full explanation
alexkappa commented
paweusz commented
Yes, it does. Thank you very much.