Skip to main content
The bunny.net Terraform provider supports two authentication methods.
Team member API keys are not supported. You must use your account’s main API key.

Using the provider configuration

Set the api_key attribute directly in your provider configuration:
provider "bunnynet" {
  api_key = "your-api-key"
}

Using environment variables

Alternatively, set the BUNNYNET_API_KEY environment variable:
export BUNNYNET_API_KEY="your-api-key"
Then configure the provider without the api_key attribute:
provider "bunnynet" {}

Provider configuration options

AttributeDescriptionDefault
api_keyYour bunny.net API keyBUNNYNET_API_KEY env var
api_urlPrimary API endpointhttps://api.bunny.net
stream_api_urlVideo streaming API endpointhttps://video.bunnycdn.com
container_api_urlContainer service API endpointhttps://api-mc.opsbunny.net
You can find your API key in the bunny.net dashboard.