Skip to content

Commit bcab987

Browse files
committed
init commit
1 parent 9ea95e7 commit bcab987

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

dns.tf

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resource "linode_domain_record" "record" {
2+
domain_id = var.domain_id
3+
name = var.name
4+
record_type = var.record_type
5+
target = var.target
6+
ttl_sec = var.ttl_sec
7+
}
8+

vars.tf

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
variable "domain_id" {
2+
type = string
3+
description = "Domain zone ID"
4+
}
5+
6+
variable "name" {
7+
type = string
8+
description = "Name for the dns record"
9+
}
10+
11+
variable "record_type" {
12+
type = string
13+
description = "DNS record type"
14+
default = "A"
15+
}
16+
17+
variable "target" {
18+
type = string
19+
description = "target for the record, example the IP address of the endpoint"
20+
}
21+
22+
variable "ttl_sec" {
23+
type = number
24+
description = "Time to live for the DNS record"
25+
default = 300
26+
}

versions.tf

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
terraform {
2+
required_providers {
3+
linode = {
4+
source = "linode/linode"
5+
}
6+
}
7+
required_version = ">= 0.13"
8+
}

0 commit comments

Comments
 (0)