/terraform-hcloud-rdns

Terraform module to provision RDNS resources in Hetzner Cloud.

Primary LanguageHCLMIT LicenseMIT

Description

Terraform module to provision RDNS resources in Hetzner Cloud.

Usage

provider "hcloud" {
  token = var.hcloud_token
}


module "sv" {
  source  = "zoro16/server/hcloud"
  version = "1.0.0"

  create_server = true
  server_name   = "rdns-server"
}

module "rdns" {
  source = "../../"

  create_rdns     = true
  rdns_server_id  = module.sv.server_id
  rdns_ip_address = module.sv.server_ipv4_address
  rdns_dns_ptr    = "example.com"
}

Requirements

Name Version
terraform >= 1.2.0
hcloud >= 1.42.1

Providers

Name Version
hcloud >= 1.42.1

Modules

No modules.

Resources

Name Type
hcloud_rdns.rdns resource

Inputs

Name Description Type Default Required
create_rdns A boolean to check whether to create a Reverse DNS or not. bool false no
rdns_dns_ptr The DNS address the ip_address should resolve to. string null no
rdns_floating_ip_id The Floating IP the ip_address belongs to. number null no
rdns_ip_address The IP address that should point to dns_ptr. string null no
rdns_load_balancer_id The Load Balancer the ip_address belongs to. number null no
rdns_primary_ip_id The Primary IP the ip_address belongs to. number null no
rdns_server_id (Required) The server the ip_address belongs to. - server_id. Specify only one of server_id, primary_ip_id, floating_ip_id and load_balancer_id. number null no

Outputs

Name Description
rdns_dns_ptr DNS pointer for the IP address.
rdns_floating_ip_id The Floating IP that the IP address belongs to.
rdns_id Unique ID of the Reverse DNS Entry.
rdns_ip_address IP address.
rdns_load_balancer_id The Load Balancer that the IP address belongs to.
rdns_primary_ip_id The Primary IP that the IP address belongs to.
rdns_server_id The server that the IP address belongs to.