03 Jul 2025 10:23 AM
Hi all,
When using Terraform Dynatrace modules namely dynatrace_mangement_zones_v2 and metric_events I have notice that changes made to configs created in Dynatrace would generate a new config setting instead of updating the original. Dynatrace will show two of the same config, the original and the one with changes and config1.tf
Am I making a mistake when exporting the module?
I've tried -export and -export -import-state, both duplicates
04 Jul 2025 09:16 AM
hi @t_thi
Can you share more details on the issue you're facing? E.g., how does the process timewise look like?
After you applied the resources the first time, were these configs then changed in the UI or Terraform files?
What is your expectation afterwards -> do you want to change the Terraform resources or overwrite the UI-changed configs again?
Thanks,
Gerhard
04 Jul 2025 09:26 AM
Hi,
I'm running
./terraform-provider-dynatrace_v1.82.2.exe -export -import-state <terraform module>
I make changes to the configs brought over from the UI and run a terraform plan
The plans always state an add rather than a change.
I have once run an apply just to see if it would update anyway and in the UI it will show the original file plus original1 file with the updated config
I just wanted to know if there's a flag I'm missing during the export to ensure it changes files rather than sees it as an add