terraform {
backend "pg" {
schema_name = "hermes_dns"
}
required_providers {
powerdns = {
source = "pan-net/powerdns"
version = "1.5.0"
data "external" "secrets" {
program = ["cat", pathexpand("~/.config/home/powerdns-api-key.json")]
provider "powerdns" {
server_url = "http://hermes.dmz:3000"
api_key = data.external.secrets.result.powerdns_api_key