DataDog / terraform-provider-datadog

Terraform Datadog provider
https://www.terraform.io/docs/providers/datadog/
Mozilla Public License 2.0
395 stars 373 forks source link

cannot import "datadog_synthetics_test" resource after upgrading to 3.44.0 (3.43.1 OK) #2561

Closed sc-yan closed 4 days ago

sc-yan commented 1 week ago

Datadog Terraform Provider Version

v3.44.0

Terraform Version

v1.9.2

What resources or data sources are affected?

datadog_synthetics_test

Terraform Configuration Files

resource "datadog_synthetics_test" "test_ice_ovice_io" {
  assertion {
    operator = "lessThan"
    target   = "1000"
    type     = "responseTime"
  }

  locations = ["aws:ap-northeast-1"]
  message   = "@slack-infra-alerts\n server port 443 doesn't respond"
  name      = "Test on xxx"

  options_list {
    accept_self_signed              = "false"
    allow_insecure                  = "false"
    check_certificate_revocation    = "false"
    disable_cors                    = "false"
    disable_csp                     = "false"
    follow_redirects                = "false"
    ignore_server_certificate_error = "false"
    initial_navigation_timeout      = "0"
    min_failure_duration            = "0"
    min_location_failed             = "1"
    monitor_name                    = "server port 443 doesn't respond"
    http_version                    = "http1"

    monitor_options {
      renotify_interval = "0"
    }

    monitor_priority = "1"
    no_screenshot    = "false"

    retry {
      count    = "2"
      interval = "3000"
    }

    tick_every = "300"
  }

  request_definition {
    dns_server_port         = "0"
    host                    = "xxx.xxx.com"
    no_saving_response_body = "false"
    number_of_packets       = "0"
    port                    = "443"
    should_track_hops       = "false"
    timeout                 = "5"
  }

  status  = "live"
  subtype = "tcp"
  tags    = ["env:prod"]
  type    = "api"
}

Relevant debug or panic output

https://gist.github.com/sc-yan/75bb55720babcd11b63035eaaeca0848

Expected Behavior

import successfully.

Actual Behavior

import failed. however, with v3.43.1, import is fine.

Steps to Reproduce

terraform import datadog_synthetics_test.test xxx

Important Factoids

No response

References

No response

Manan-Kothari commented 1 week ago

Seeing the same issue for ssl synthetic tests that I have

code is here https://gist.github.com/Manan-Kothari/87d618aa43ec48d77b07e6d613eafd08

davbridge commented 5 days ago

I am seeing the same problem SSH synthetic tests

Error: object contains unparsed element: map[config:map[assertions:[] configVariables:[] request:map[host:service.mydomain.com port:22]] created_at

nkzou commented 4 days ago

Hi all, version 3.44.1 has been released with a fix for this issue. Please try it out and let us know if anything is amiss. Thanks!