Skip to content

Commit

Permalink
Add Cloudflare provider
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Nov 14, 2024
1 parent ee1449b commit b14fa71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stun_server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
5 changes: 5 additions & 0 deletions stun_server/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b14fa71

Please sign in to comment.