-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
46 lines (39 loc) · 835 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.0"
}
vercel = {
source = "vercel/vercel"
version = "~> 2.0"
}
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
provider "cloudflare" {
api_token = var.cloudflare_api_token
}
provider "vercel" {
api_token = var.vercel_api_token
}
provider "digitalocean" {
token = var.digitalocean_api_token
}
module "mattgleich_dns" {
source = "./modules/cloudflare"
zone_id = "b580b7998284e872e4e6d3a33aac00a8"
}
module "mattgleich_com_dns" {
source = "./modules/cloudflare"
zone_id = "0321ab5a32959ab44e02ba727bae8106"
}
module "vercel" {
source = "./modules/vercel"
}
module "digitalocean" {
source = "./modules/digitalocean"
}