> ## Documentation Index > Fetch the complete documentation index at: https://bunny.net/docs/llms.txt > Use this file to discover all available pages before exploring further. # Managing Pullzones for Edge Scripting > Learn how to manage the association between Edge Scripts and Pullzones via Terraform Edge Scripts are required to be attached to a Pullzone in order to be executed. Here's how you can manage this association via Terraform. ## Terraform-managed Scripts If you already have a Pullzone managed via Terraform and you want to attach an Edge Script to it, you'll need the following attributes on your resource: > [tab] Standalone Script > > ```hcl theme={null} > resource "bunnynet_pullzone" "my-app" { > name = "my-app" > > origin { > type = "ComputeScript" > url = "https://bunnycdn.com" > script = bunnynet_compute_script.my-script.id > } > > routing { > filters = ["scripting"] > } > } > ``` > [tab] Middleware Script > > ```hcl theme={null} > resource "bunnynet_pullzone" "my-app" { > name = "my-app" > > origin { > type = "OriginUrl" > url = "https://my-origin.example.com" > middleware_script = bunnynet_compute_script.my-script.id > } > > routing { > filters = ["scripting"] > } > } > ``` ## Edge Script created via Dashboard Edge Scripts created via the bunny.net Dashboard already are attached to a Pullzone, so you need to import it into your Terraform configuration: 1. Define the resource ```hcl theme={null} resource "bunnynet_pullzone" "my-app" { name = "my-app" origin { type = "ComputeScript" script = bunnynet_compute_script.my-script.id url = "https://bunnycdn.com" } routing { filters = ["scripting"] } } ``` 2. Import the pullzone Run `terraform import bunnynet_pullozne.my-app PZID`, where `PZID` is the ID of the Pullzone created alongside the Edge Script. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.