-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
47 lines (40 loc) · 1.23 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
provider "azurerm" {
version = "=2.0.0"
subscription_id = var.az_subscription_id
client_id = var.az_client_id
client_secret = var.az_client_secret
tenant_id = var.az_tenant_id
features {}
}
provider "hcloud" {
token = var.hcloud_token
}
terraform {
}
resource "azurerm_resource_group" "openinfrastructure_rg" {
name = "openinfrastructure_rg"
location = "westeurope"
}
resource "azurerm_dns_zone" "openinfrastructure_dns" {
name = "open-infrastructure.de"
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
}
# Verification that my Domain really belongs to me
resource "azurerm_dns_txt_record" "spf_and_ms_verification" {
name = "@"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 3600
record {
value = "MS=ms31800594"
}
}
resource "azurerm_dns_txt_record" "github_challenge" {
name = "_github-challenge-open-infrastructure"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 3600
record {
value = "b222d3fa0a"
}
}