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.
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:
Standalone Script
Middleware Script
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:
- Define the resource
- Import the pullzone
Run terraform import bunnynet_pullozne.my-app PZID, where PZID is the ID of the Pullzone created alongside the Edge Script. Last modified on May 5, 2026