Terraform Provider for setting DNS records in Hurricane Electric.
The documentation can be found at registry.terraform.io.
Examples can be found in the examples folder.
terraform {
required_providers {
dns-he-net = {
source = "SuperBuker/dns-he-net"
}
}
}
provider "dns-he-net" {
username = "username"
password = "password"
otp_secret = "otp_secret" # optional, only if enabled
store_type = "encrypted" # optional, default: "encrypted"
}
resource "dns-he-net_a" "example" {
zone_id = 123456
domain = "example.com"
ttl = 86400
data = "1.2.3.4"
}
Then run terraform init
to download and install the provider.
Clone the repository.
$ git clone git@github.com:SuperBuker/terraform-provider-dns-he-net.git
Enter the provider directory and build the provider
$ cd ./terraform-provider-dns-he-net
$ go build -o terraform-provider-dns-he-net
Everything related with testing is available in the testing folder.
Bug reports are welcome. :wink:
After the build is complete, copy the binary into the ~/.terraform.d/plugins
directory
$ cp ./terraform-provider-dns-he-net ~/.terraform.d/plugins/terraform-provider-dns-he-net
If you'd like to thank the developers behind this project leave a GitHub Star and spread the word.
This is just a humble hobby project, we are not looking for donations.