https://github.com/zoro16/terraform-hcloud-rdns
Terraform module to provision RDNS resources in Hetzner Cloud.
https://github.com/zoro16/terraform-hcloud-rdns
hetzner hetzner-cloud hetzner-rdns terraform-hcloud-rdns terraform-module
Last synced: 9 months ago
JSON representation
Terraform module to provision RDNS resources in Hetzner Cloud.
- Host: GitHub
- URL: https://github.com/zoro16/terraform-hcloud-rdns
- Owner: zoro16
- License: mit
- Created: 2023-09-23T18:29:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-25T12:12:12.000Z (over 2 years ago)
- Last Synced: 2025-03-22T06:17:13.853Z (about 1 year ago)
- Topics: hetzner, hetzner-cloud, hetzner-rdns, terraform-hcloud-rdns, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/zoro16/rdns/hcloud/latest
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Description
Terraform module to provision `RDNS` resources in Hetzner Cloud.
## Usage
```hcl
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](#requirement\_terraform) | >= 1.2.0 |
| [hcloud](#requirement\_hcloud) | >= 1.42.1 |
## Providers
| Name | Version |
|------|---------|
| [hcloud](#provider\_hcloud) | >= 1.42.1 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [hcloud_rdns.rdns](https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs/resources/rdns) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [create\_rdns](#input\_create\_rdns) | A boolean to check whether to create a Reverse DNS or not. | `bool` | `false` | no |
| [rdns\_dns\_ptr](#input\_rdns\_dns\_ptr) | The DNS address the ip\_address should resolve to. | `string` | `null` | no |
| [rdns\_floating\_ip\_id](#input\_rdns\_floating\_ip\_id) | The Floating IP the ip\_address belongs to. | `number` | `null` | no |
| [rdns\_ip\_address](#input\_rdns\_ip\_address) | The IP address that should point to dns\_ptr. | `string` | `null` | no |
| [rdns\_load\_balancer\_id](#input\_rdns\_load\_balancer\_id) | The Load Balancer the ip\_address belongs to. | `number` | `null` | no |
| [rdns\_primary\_ip\_id](#input\_rdns\_primary\_ip\_id) | The Primary IP the ip\_address belongs to. | `number` | `null` | no |
| [rdns\_server\_id](#input\_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](#output\_rdns\_dns\_ptr) | DNS pointer for the IP address. |
| [rdns\_floating\_ip\_id](#output\_rdns\_floating\_ip\_id) | The Floating IP that the IP address belongs to. |
| [rdns\_id](#output\_rdns\_id) | Unique ID of the Reverse DNS Entry. |
| [rdns\_ip\_address](#output\_rdns\_ip\_address) | IP address. |
| [rdns\_load\_balancer\_id](#output\_rdns\_load\_balancer\_id) | The Load Balancer that the IP address belongs to. |
| [rdns\_primary\_ip\_id](#output\_rdns\_primary\_ip\_id) | The Primary IP that the IP address belongs to. |
| [rdns\_server\_id](#output\_rdns\_server\_id) | The server that the IP address belongs to. |