Edge DNS resources
Azion Terraform Provider resources and data sources that manage Edge DNS zones, records, and DNSSEC with the azion_intelligent_dns family.
The Azion Terraform Provider manages Edge DNS with three resources and reads it with four data sources. A zone holds the records of a domain, and DNSSEC adds a layer of security to a zone. The identifiers keep the intelligent_dns form that the provider uses, and they have the same names in provider v1.x and v2.0. For more information, refer to Migrate from provider v1.x to v2.0.
Edge DNS resources
| Resource | Description |
|---|---|
azion_intelligent_dns_zone | Creates and manages a DNS zone. |
azion_intelligent_dns_record | Creates and manages a DNS record. |
azion_intelligent_dns_dnssec | Manages the DNSSEC settings of a zone. |
azion_intelligent_dns_zone requires name, a string that holds the name of the zone, and takes the optional boolean active, which sets whether the zone is active. azion_intelligent_dns_record requires four strings: zone_id, the ID of the zone that holds the record; name, the name of the record; type, the record type, such as A, AAAA, or CNAME; and value, the value of the record. It also takes the optional number ttl, the time to live of the record in seconds. azion_intelligent_dns_dnssec takes zone_id and active. The record and DNSSEC resources read the zone ID from the id attribute of the zone resource. For every record type, refer to Record types. The Terraform Registry page of each resource lists every argument.
Data sources
| Data source | Description |
|---|---|
azion_intelligent_dns_zones | Lists DNS zones. |
azion_intelligent_dns_zone | Reads one DNS zone. |
azion_intelligent_dns_records | Lists DNS records. |
azion_intelligent_dns_dnssec | Reads the DNSSEC settings of a zone. |
Example
This configuration pins the provider, creates a zone with an A record and a CNAME record, turns on DNSSEC for the zone, and outputs the zone ID. It reads your personal token from the api_token variable that the Azion Terraform Provider quickstart declares.