bump to v0.2.0: complete provider implementation with live-tested DNS record types
ci / test (push) Failing after 5m55s

- DYNU_API_KEY env var fallback in provider config
- dynu_domain resource: add 9 computed attributes (unicode_name, ipv4/ipv6 flags,
  wildcard aliases, allow_zone_transfer, dnssec, created_on, updated_on)
- dynu_dns_records data source: add 6 type-specific fields (priority, weight,
  port, flags, tag, value)
- Fix normalizeRecordContentForState for MX/SRV/NS/PTR (read host field) and CAA
  (read value field) to avoid plan/state inconsistency
- Allow underscore-prefixed DNS labels in hostname validator (RFC 2782 SRV)
- Preserve plan/state hostname across create/update/read to prevent inconsistent
  result errors when API returns full FQDN for node_name-style records
- Update all version references from 0.1.0 to 0.2.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LFZyrmtKsezBwFWGTWsb2y
This commit is contained in:
2026-08-03 23:40:27 +10:00
co-authored by Claude Sonnet 4.6
parent 12b8f2460d
commit 70bb75ad46
17 changed files with 159 additions and 35 deletions
+6
View File
@@ -37,3 +37,9 @@ data "dynu_dns_records" "records" {
- `updated_on` (String)
- `group` (String)
- `host` (String)
- `priority` (Number) Priority for MX and SRV records.
- `weight` (Number) Weight for SRV records.
- `port` (Number) Port for SRV records.
- `flags` (Number) Flags for CAA records.
- `tag` (String) Tag for CAA records.
- `value` (String) Value for CAA records.
+1 -1
View File
@@ -16,7 +16,7 @@ terraform {
required_providers {
dynu = {
source = "beatz174-bit/dynu"
version = "~> 0.1.0"
version = "~> 0.2.0"
}
}
}
+9
View File
@@ -38,6 +38,15 @@ These fields can be configured, and also reflect values returned by Dynu.
- `id` (Number) Dynu numeric domain ID.
- `state` (String) Dynu state.
- `token` (String, Sensitive) Dynu domain token.
- `unicode_name` (String) Unicode representation of the domain name.
- `ipv4` (Boolean) Whether IPv4 support is enabled.
- `ipv6` (Boolean) Whether IPv6 support is enabled.
- `ipv4_wildcard_alias` (Boolean) Whether IPv4 wildcard alias is enabled.
- `ipv6_wildcard_alias` (Boolean) Whether IPv6 wildcard alias is enabled.
- `allow_zone_transfer` (Boolean) Whether zone transfer is allowed.
- `dnssec` (Boolean) Whether DNSSEC is enabled.
- `created_on` (String) Creation timestamp as returned by Dynu.
- `updated_on` (String) Last update timestamp as returned by Dynu.
## Import