Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aztfm/terraform-azurerm-private-dns-zone
Terraform module for Microsoft Azure to manage Private Dns Zone resource.
https://github.com/aztfm/terraform-azurerm-private-dns-zone
azure azure-resource-manager private-dns-zone terraform terraform-module
Last synced: 28 days ago
JSON representation
Terraform module for Microsoft Azure to manage Private Dns Zone resource.
- Host: GitHub
- URL: https://github.com/aztfm/terraform-azurerm-private-dns-zone
- Owner: aztfm
- License: mit
- Created: 2021-09-24T17:53:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-04T11:39:26.000Z (8 months ago)
- Last Synced: 2024-05-04T12:30:05.245Z (8 months ago)
- Topics: azure, azure-resource-manager, private-dns-zone, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/aztfm/private-dns-zone/azurerm/
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Azure Private DNS Zone - Terraform Module
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![Terraform Registry](https://img.shields.io/badge/terraform-registry-blueviolet.svg)](https://registry.terraform.io/modules/aztfm/private-dns-zone/azurerm/)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/aztfm/terraform-azurerm-private-dns-zone)[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/aztfm/terraform-azurerm-private-dns-zone?quickstart=1)
## Version compatibility
| Module version | Terraform version | AzureRM version |
| -------------- | ----------------- | --------------- |
| >= 1.x.x | >= 1.3.x | >= 2.37.0 |## Parameters
The following parameters are supported:
| Name | Description | Type | Default | Required |
| ---- | ----------- | :--: | :-----: | :------: |
|name|The name of the private DNS zone.|`string`|n/a|yes|
|resource\_group\_name|The name of the resource group in which to create the private DNS zone.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`{}`|no|
|soa\_record|Enables you to manage DNS SOA Record within Azure Private DNS.|`object({})`|`null`|no|
|a\_records|Enables you to manage DNS A Records within Azure Private DNS.|`list(object({}))`|`[]`|no|
|aaaa\_records|Enables you to manage DNS A Records within Azure Private DNS.|`list(object({}))`|`[]`|no|
|cname\_records|Enables you to manage DNS CNAME Records within Azure Private DNS.|`list(object({}))`|`[]`|no|
|mx\_records|Enables you to manage DNS MX Records within Azure Private DNS.|`list(object({}))`|`[]`|no|
|ptr\_records|Enables you to manage DNS PTR Records within Azure Private DNS.|`list(object({}))`|`[]`|no|
|srv\_records|Enables you to manage DNS SRV Records within Azure Private DNS.|`list(object({}))`|`[]`|no|
|txt\_records|Enables you to manage DNS TXT Records within Azure Private DNS.|`list(object({}))`|`[]`|no|
|virtual\_network\_links|Enables you to manage Private DNS zone Virtual Network Links.|`list(object({}))`|`[]`|no|The `soa_record` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|email|The email contact for the SOA record.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the Record Set.|`map(string)`|`null`|no|
|expire\_time|The expire time for the SOA record.|`number`|`null`|no|
|minimum\_ttl|The minimum Time To Live for the SOA record.|`number`|`null`|no|
|refresh\_time|The refresh time for the SOA record.|`number`|`null`|no|
|retry\_time|The retry time for the SOA record.|`number`|`null`|no|
|ttl|The Time To Live of the SOA Record in seconds.|`number`|`null`|no|The `a_records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|name|The name of the DNS A Record.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`null`|no|
|ttl|The Time To Live (TTL) of the DNS record in seconds.|`number`|n/a|yes|
|records|List of IPv4 Addresses.|`list(string)`|n/a|yes|The `aaaa_records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|name|The name of the DNS AAAA Record.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`null`|no|
|ttl|The Time To Live (TTL) of the DNS record in seconds.|`number`|n/a|yes|
|records|A list of IPv6 Addresses.|`list(string)`|n/a|yes|The `cname_records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|name|The name of the DNS CNAME Record.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`null`|no|
|ttl|The Time To Live (TTL) of the DNS record in seconds.|`number`|n/a|yes|
|record|The target of the CNAME.|`string`|n/a|yes|The `mx_records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|name|The name of the DNS MX Record.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`null`|no|
|ttl|The Time To Live (TTL) of the DNS record in seconds.|`number`|n/a|yes|
|records|A list of values that make up the MX record.|`list(object({}))`|n/a|yes|The `mx_records.records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|preference|The preference of the MX record.|`number`|n/a|yes|
|exchange|The FQDN of the exchange to MX record points to.|`string`|n/a|no|The `ptr_records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|name|The name of the DNS PTR Record.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`null`|no|
|ttl|The Time To Live (TTL) of the DNS record in seconds.|`number`|n/a|yes|
|records|List of Fully Qualified Domain Names.|`list(string)`|n/a|yes|The `srv_records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|name|The name of the DNS SRV Record.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`null`|no|
|ttl|The Time To Live (TTL) of the DNS record in seconds|`number`|n/a|yes|
|records|A list of values that make up the SRV record.|`list(object({})`|n/a|yes|The `srv_records.records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|priority|The priority of the SRV record.|`number`|n/a|yes|
|weight|The Weight of the SRV record.|`number`|n/a|no|
|port|The Port the service is listening on.|`number`|n/a|yes|
|target|The FQDN of the service.|`string`|n/a|yes|The `txt_records` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|name|The name of the DNS TXT Record.|`string`|n/a|yes|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`null`|no|
|ttl|The Time To Live (TTL) of the DNS record in seconds.|`number`|n/a|yes|
|records|A list of values that make up the txt record.|`list(string)`|n/a|yes|The `virtual_network_links` supports the following:
| Name | Description | Type | Default | Required |
| ---- | ------------| :--: | :-----: | :------: |
|name|The name of the Private DNS Zone Virtual Network Link.|`string`|n/a|yes|
|virtual\_network\_id|The ID of the Virtual Network that should be linked to the DNS Zone.|`string`|n/a|no|
|tags|A mapping of tags to assign to the resource.|`map(string)`|`null`|no|
|registration\_enabled|Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?|`list(string)`|`false`|no|## Outputs
The following outputs are exported:
| Name | Description | Sensitive |
| ---- | ------------| :-------: |
|id|The Private DNS Zone ID.|no|
|name|The name of the Private DNS zone.|no|
|resource_group_name|The name of the resource group in which to create the Private DNS zone.|no|
|tags|The tags assigned to the resource.|no|
|number_of_record_sets|The current number of record sets in this Private DNS zone.|no|
|max_number_of_record_sets|The maximum number of record sets that can be created in this Private DNS zone.|no|
|max_number_of_virtual_network_links|The maximum number of virtual networks that can be linked to this Private DNS zone.|no|
|max_number_of_virtual_network_links_with_registration|The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled.|no|
|soa_record|Block containing configuration of SOA record.|no|
|a_records|Blocks containing configuration of each A record.|no|
|aaaa_records|Blocks containing configuration of each AAAA record.|no|
|cname_records|Blocks containing configuration of each CNAME record.|no|
|mx_records|Blocks containing configuration of each MX record.|no|
|ptr_records|Blocks containing configuration of each PTR record.|no|
|srv_records|Blocks containing configuration of each SRV record.|no|
|txt_records|Blocks containing configuration of each TXT record.|no|