diff --git a/stun_server/main.tf b/stun_server/main.tf index 4ec96ba..7fe076f 100644 --- a/stun_server/main.tf +++ b/stun_server/main.tf @@ -12,6 +12,10 @@ provider "aws" { region = "us-east-1" } +provider "cloudflare" { + api_token = var.CLOUDFLARE_API_TOKEN +} + data "cloudflare_zone" "dns_zone" { name = var.domain_name } diff --git a/stun_server/variables.tf b/stun_server/variables.tf index b834de9..d4505cf 100644 --- a/stun_server/variables.tf +++ b/stun_server/variables.tf @@ -3,6 +3,11 @@ variable "CLOUDFLARE_ACCOUNT_ID" { type = string } +variable "CLOUDFLARE_API_TOKEN" { + description = "Cloudflare API token" + type = string +} + variable "domain_name" { description = "The base domain name" type = string