# Synthetic Monitor Terraform Module

**URL:** <https://community.dynatrace.com/t/synthetic-monitor-terraform-module/46506>\
**Category:** Synthetic Monitoring\
**Tags:** terraform, browser-monitors\
**Created:** [July 8, 2024, 3:40pm UTC](https://community.dynatrace.com/t/synthetic-monitor-terraform-module/46506 "2024-07-08T15:40:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![J-Pollard99](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@J-Pollard99](https://community.dynatrace.com/u/J-Pollard99)\
**Post date:** [July 8, 2024, 3:40pm UTC](https://community.dynatrace.com/t/synthetic-monitor-terraform-module/46506/1 "2024-07-08T15:40:52Z")

</div>

I’m currently setting up a terraform module for synthetics. Due to how we are currently using Dynatrace I want to keep the module as simple as possible for people to use. What I would like to do is pass in a file for the script block that will contain the script. I’ve tried a few different methods but am only getting errors back from the IDE. Is this something that is possible / if it is how should I approach implementing it. Below is one of the ways I’ve attempted to implement this without success.

```markup
script {
    type = var.script_type
    script = file(var.script_file)
  }

```

---

_[View the full topic](https://community.dynatrace.com/t/synthetic-monitor-terraform-module/46506)._
