Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 770 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 770 Bytes

terraform-provider-dnspod

Travis Status

Terraform Provider Plugin which manages DNS records in DNSPod.

Example

Config

provider "dnspod" {
  login_token = "${var.dnspod_login_token}"
}

Set an A Record

resource "dnspod_domain" "example_com" {
    domain = "example.com"
}

resource "dnspod_record" "www_example_com" {
    domain_id = "${dnspod_domain.example_com.id}"
    record_type "A"
    value: "127.0.0.1"
    ttl: 86400
}

Import

To import domain, use the domain ID return from API. To import record, concat its domain id and record id with "-".