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