File tree 3 files changed +42
-0
lines changed
3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ linode = {
4
+ source = " linode/linode"
5
+ }
6
+ }
7
+ required_version = " >= 0.13"
8
+ }
You can’t perform that action at this time.
0 commit comments