> ## 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. # Authentication > Learn how to authenticate with the bunny.net Terraform provider using your API key. The bunny.net Terraform provider supports two authentication methods. > [!WARNING] > > 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: ```hcl theme={null} provider "bunnynet" { api_key = "your-api-key" } ``` ## Using environment variables Alternatively, set the `BUNNYNET_API_KEY` environment variable: ```bash theme={null} export BUNNYNET_API_KEY="your-api-key" ``` Then configure the provider without the `api_key` attribute: ```hcl theme={null} provider "bunnynet" {} ``` ## Provider configuration options | Attribute | Description | Default | | - | - | - | | `api_key` | Your bunny.net API key | `BUNNYNET_API_KEY` env var | | `api_url` | Primary API endpoint | `https://api.bunny.net` | | `stream_api_url` | Video streaming API endpoint | `https://video.bunnycdn.com` | | `container_api_url` | Container service API endpoint | `https://api-mc.opsbunny.net` | > [!NOTE] > > You can find your API key in the [bunny.net dashboard](https://dash.bunny.net/account/api-key). This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.