-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathmain.tf
More file actions
58 lines (51 loc) · 957 Bytes
/
main.tf
File metadata and controls
58 lines (51 loc) · 957 Bytes
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
terraform {
required_providers {
gandi = {
version = "~> 2.3.0"
source = "go-gandi/gandi"
}
}
}
variable "gandi_pat" {
type = string
sensitive = true
}
provider "gandi" {
personal_access_token = var.gandi_pat
}
variable "domain" {
type = string
}
data "gandi_domain" "this" {
name = var.domain
}
resource "gandi_livedns_record" "a" {
name = "@"
type = "A"
ttl = 3600
values = [
"185.199.110.153",
"185.199.111.153",
"185.199.109.153",
"185.199.108.153",
]
zone = data.gandi_domain.this.name
}
resource "gandi_livedns_record" "www" {
name = "www"
type = "CNAME"
ttl = 3600
values = [
"hamcrest.github.io."
]
zone = data.gandi_domain.this.name
}
resource "gandi_livedns_record" "github_pages" {
name = "_github-pages-challenge-hamcrest"
type = "TXT"
ttl = 10800
values = [
"\"109f0d722de274783b6d3065b747a2\""
]
zone = data.gandi_domain.this.name
}