-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.tf
84 lines (73 loc) · 1.39 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.74.0"
}
awscreds = {
source = "armorfret/awscreds"
version = "0.6.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
provider "awscreds" {
region = "us-east-1"
}
variable "admins" {
type = list(string)
default = [
"akerl-codepad",
"akerl-wilson",
"akerl-hafte",
]
}
variable "billing_email" {
type = string
default = "me@lesaker.org"
}
variable "admin_email" {
type = string
default = "admin@lesaker.org"
}
variable "domains" {
type = set(string)
default = [
"a-rwx.org",
"aker.family",
"akerl.app",
"akerl.com",
"akerl.dev",
"akerl.net",
"akerl.org",
"aliceaker.com",
"carolineaker.com",
"coolquotes.xyz",
"happilyeveraker.com",
"id-ed25519.pub",
"kellywatts.com",
"lesaker.com",
"lesaker.org",
"scrtybybscrty.org",
]
}
data "terraform_remote_state" "linode" {
backend = "http"
config = {
address = "https://raw.githubusercontent.com/akerl/linode-account/main/terraform.tfstate"
}
}
data "terraform_remote_state" "unifi" {
backend = "http"
config = {
address = "https://raw.githubusercontent.com/akerl/unifi-site/main/terraform.tfstate"
}
}
output "domains" {
value = var.domains
}
output "nameservers" {
value = aws_route53_delegation_set.main.name_servers
}