Skip to content

importing datadog synthetics_test will render empty output if type is browser test and has HTTP Authentication configured #1777

@BogdanSorlea

Description

@BogdanSorlea

the title pretty much sums it up.
it does not matter if the HTTP Authentication is configured with a fixed value or whether it references an Synthetics Global Variable, the end result seems to be the same.

datadog error is:

2023-09-14T10:53:36.732+0200 [ERROR] plugin.terraform-provider-datadog_v3.20.0: Response contains error diagnostic: tf_rpc=ReadResource @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:55 tf_req_id=f8e22659-858e-471a-f206-c36e869f3a3a tf_provider_addr=provider tf_proto_version=5.3 diagnostic_severity=ERROR diagnostic_detail="" diagnostic_summary="object contains unparsed element: map[password:<redacted> username:<redacted>]" tf_resource_type=datadog_synthetics_test @module=sdk.proto timestamp="2023-09-14T10:53:36.731+0200"

result in .tf file is:

resource "datadog_synthetics_test" "tfer--synthetics_<redacted (Datadog synthetics test ID)>" {}

versions running are:

(☸️ |aws-platform-staging-eu-west-1:platform)➜  tmp_datadog less generated/datadog/synthetics_test/synthetics_test.tf
(☸️ |aws-platform-staging-eu-west-1:platform)➜  tmp_datadog terraformer --version
version v0.8.24
(☸️ |aws-platform-staging-eu-west-1:platform)➜  tmp_datadog terraform --version
Terraform v1.5.7
on darwin_arm64
+ provider registry.terraform.io/datadog/datadog v3.20.0
(☸️ |aws-platform-staging-eu-west-1:platform)➜  tmp_datadog cat provider.tf
terraform {
  required_providers {
    datadog = {
      source  = "DataDog/datadog"
      version = "3.30.0"
    }
  }
}

provider "datadog" {
  # Configuration options
}
(☸️ |aws-platform-staging-eu-west-1:platform)➜  tmp_datadog

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions