Files
infrastructure/terraform/provider.tf

39 lines
688 B
HCL

terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
version = "1.57.0"
}
netbox = {
source = "e-breuninger/netbox"
version = "5.0.0"
}
}
}
variable NETBOX_API_TOKEN {
type = string
description = "netbox api token"
sensitive = true
}
variable NETBOX_SERVER_URL {
type = string
description = "netbox server url"
sensitive = false
}
variable hcloud_token {
type = string
description = "hetzner cloud api token"
sensitive = true
}
provider "netbox" {
server_url = var.NETBOX_SERVER_URL
api_token = var.NETBOX_API_TOKEN
}
provider "hcloud" {
token = var.hcloud_token
}