-
Notifications
You must be signed in to change notification settings - Fork 19
/
example.tf
34 lines (30 loc) · 928 Bytes
/
example.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
resource "vinyldns_group" "test_group" {
name = "terraform-provider-test-group"
member_ids = ["123"]
admin_ids = ["123"]
}
resource "vinyldns_zone" "test_zone" {
name = "system-test."
email = "foo@bar.com"
admin_group_id = "${vinyldns_group.test_group.id}"
zone_connection {
name = "vinyldns."
key_name = "vinyldns."
key = "123"
primary_server = "127.0.0.1"
}
}
resource "vinyldns_record_set" "test_record_set" {
name = "terraformtestrecordset"
zone_id = "${vinyldns_zone.test_zone.id}"
type = "A"
ttl = 6000
record_addresses = ["127.0.0.1"]
}
resource "vinyldns_record_set" "another_test_record_set" {
name = "another-terraformtestrecordset"
zone_id = "${vinyldns_zone.test_zone.id}"
type = "CNAME"
ttl = 6000
record_cname = "foo-bar.com."
}