Skip to content

Terraform Provider Plugin which manages DNS records in dnspod.cn

License

Notifications You must be signed in to change notification settings

doitian/terraform-provider-dnspod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 "-".

About

Terraform Provider Plugin which manages DNS records in dnspod.cn

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages