Skip to main content
When you create a Stream library, bunny.net automatically provisions a Pull Zone and Storage Zone. To manage these resources with Terraform, you need to import them into your state.
1

Define the stream library

Create or update your Terraform configuration with the stream library resource:
2

Apply the configuration

Run apply to create or sync the library:
3

Add resources with import blocks

Define the associated Pull Zone and Storage Zone resources, along with import blocks:
4

Apply to import

Run apply to import the resources into your Terraform state:
The Pull Zone and Storage Zone are now managed by Terraform.
Last modified on June 26, 2026