I’m trying to create an API synthetic test and need to use a Private Location that already exists in datadog.
I’m trying to import it:
terraform import datadog_synthetics_private_location.NAME pl:NAME_FROM_DATADOG
But I’m getting:
Error: resource address “datadog_synthetics_private_location.PL-US-EAST-1-INFRA-PROD” does not exist in the configuration.
Before importing this resource, please create its configuration in the root module. For example:
resource “datadog_synthetics_private_location” “NAME” {
(resource arguments)
}
And when I add:
resource “datadog_synthetics_private_location” “NAME” {
name = “NAME”
description = “NAME”
}
It creates a new one.