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
My issue isn't already found on the issue tracker.
I have replicated my issue using the latest version of the provider and it is still present.
Terraform and Cloudflare provider version
Noticed in provider 2.19.2 and 2.20.0
According to the Cloudflare documentation (https://developers.cloudflare.com/logs/logpush/datadog), when using Datadog as the target for a Log push job, there is not ownership challenge.
Unlike configuring Logpush jobs for AWS S3, GCS, or Azure, there is no ownership challenge when configuring Logpush to Datadog.
When trying to configure this a Datadog Log Push job in the terraform provider I get this output:
Error: Missing required argument
on cloudflare_logpush_job.tf line 1, in resource "cloudflare_logpush_job" "datadog":
1: resource "cloudflare_logpush_job" "datadog" {
The argument "ownership_challenge" is required, but no definition was found.
ERROR: Terraform plan failed
I assume the ownership_challenge parameter needs to be optional rather than mandatory. I can get through the plan phase by setting it to an empty string.
Affected resource(s)
cloudflare_logpush_job
Terraform configuration files
resource"cloudflare_logpush_job""datadog" {
enabled=truezone_id=cloudflare_zone.main.idname="datadog-logpush-job"logpull_options="fields=RayID,ClientIP,EdgeStartTimestamp×tamps=rfc3339"destination_conf="datadog://http-intake.logs.datadoghq.com/v1/input?header_DD-API_KEY=${data.aws_ssm_parameter.datadog_api_token.value}"#&service=<SERVICE>&host=<HOST>&ddsource=<SOURCE>"ownership_challenge=""# Mandatory variable but not required for Datadog targetsdataset="http_requests"
}
Debug output
No response
Panic output
No response
Expected output
no failure state due to ownership_challenge being a mandatory parameter
Actual output
Error: Missing required argument
on cloudflare_logpush_job.tf line 1, in resource "cloudflare_logpush_job" "datadog":
1: resource "cloudflare_logpush_job" "datadog" {
The argument "ownership_challenge" is required, but no definition was found.
ERROR: Terraform plan failed
Steps to reproduce
Create cloudflare_logpush_job without a ownership_challenge resource when destination_conf is for a datadog target
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Confirmation
Terraform and Cloudflare provider version
Noticed in provider 2.19.2 and 2.20.0
According to the Cloudflare documentation (https://developers.cloudflare.com/logs/logpush/datadog), when using Datadog as the target for a Log push job, there is not ownership challenge.
When trying to configure this a Datadog Log Push job in the terraform provider I get this output:
I assume the
ownership_challenge
parameter needs to be optional rather than mandatory. I can get through the plan phase by setting it to an empty string.Affected resource(s)
cloudflare_logpush_job
Terraform configuration files
Debug output
No response
Panic output
No response
Expected output
no failure state due to ownership_challenge being a mandatory parameter
Actual output
Error: Missing required argument
on cloudflare_logpush_job.tf line 1, in resource "cloudflare_logpush_job" "datadog":
1: resource "cloudflare_logpush_job" "datadog" {
The argument "ownership_challenge" is required, but no definition was found.
ERROR: Terraform plan failed
Steps to reproduce
Create
cloudflare_logpush_job
without aownership_challenge
resource whendestination_conf
is for a datadog targetAdditional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: