terraform-provider-datadog icon indicating copy to clipboard operation
terraform-provider-datadog copied to clipboard

changing datadog_synthetics_test.browser_step.params.element doesn't create a diff in the plan

Open farcaller opened this issue 1 year ago • 1 comments

Datadog Terraform Provider Version

v3.44.1

Terraform Version

v1.5.2

What resources or data sources are affected?

datadog_synthetics_test

Terraform Configuration Files

We use cdktf, but what changes is the datadog_synthetics_test.browser_step.params.element string only.

Relevant debug or panic output

N/A

Expected Behavior

Changing element string should result in a plan with a single diff against the element value

Actual Behavior

The plan is a noop. terraform plan -replace=datadog_synthetics_test.affected_name shows the change as expected, though (but it will also recreate the resource which is undesirable).

Steps to Reproduce

  • Create a datadog_synthetics_test resource with a browser step that affects a specific element
  • Apply the plan
  • Change the element
  • Apply the plan (there will be no diff)

Important Factoids

No response

References

No response

farcaller avatar Oct 02 '24 14:10 farcaller

Hello, When you change an element in a browser step, you need to use the force_element_update option to ensure the change is applied. This should help reflect the changes without recreating the resource.

This is a know limitation of the provider/API (compared to standard terraform resource) as this element is altered by the API

Please let me know if this resolves your issue.

ecdatadog avatar Feb 18 '25 15:02 ecdatadog