A Terraform provider for managing Jellyfin media server resources.
The provider can be installed from the Terraform Registry:
terraform {
required_providers {
jellyfin = {
source = "jkossis/jellyfin"
}
}
}provider "jellyfin" {
endpoint = "http://localhost:8096"
api_key = "your-api-key-here"
}
# Create an API key
resource "jellyfin_api_key" "example" {
app_name = "My Application"
}
# Look up an existing API key
data "jellyfin_api_key" "existing" {
app_name = "Existing Application"
}The provider requires a Jellyfin API key for authentication. You can generate one from the Jellyfin dashboard under Administration > API Keys.
Configuration can be provided via:
- Provider configuration block (
endpointandapi_key) - Environment variables (
JELLYFIN_ENDPOINTandJELLYFIN_API_KEY)
jellyfin_api_key- Manages Jellyfin API keys
jellyfin_api_key- Retrieves information about existing API keys
- Clone the repository
- Enter the repository directory
- Build the provider:
go build -o terraform-provider-jellyfinTo generate or update documentation, run make generate.
To run the full suite of acceptance tests:
make testaccNote: Acceptance tests require a running Jellyfin instance and valid credentials.
MPL-2.0