Closed ericrichtert closed 4 years ago
If you remove the extra . on end of names parameter this one should match results given back API for A records
provider "akamai" { edgerc = "~/.edgerc" dns_section = "dns" }
locals { zone = "akavadev1.net" }
data "akamai_contract" "contract" { }
data "akamai_group" "group" { }
resource "akamai_dns_record" "a__xxx_nl" { zone = "${local.zone}" name = "${local.zone}" recordtype = "A" active = true ttl = 3600 target = [ "1.1.8.4" ] }
resource "akamai_dns_record" "a_www_xxx_nl" { zone = "${local.zone}" name = "www.${local.zone}" recordtype = "A" active = true ttl = 3600 target = [ "1.1.8.4" ] }
Results from API config-dns/v2/zones/akavadev1.net/recordsets?showAll=true&accept=application/json&types=A
{ "metadata": { "showAll": true, "totalElements": 2 }, "recordsets": [ { "name": "akavadev1.net", "type": "A", "ttl": 3600, "rdata": [ "1.1.8.4" ] }, { "name": "www.akavadev1.net", "type": "A", "ttl": 3600, "rdata": [ "1.1.8.4" ] } ] }
Terraform Version
Terraform v0.12.7
Affected Resource(s)
akamai_dns_zone akamai_dns_record
Terraform Configuration Files