akamai / cli-terraform

Akamai CLI plugin Admin Support for multiple OpenAPI resource types
Apache License 2.0
21 stars 11 forks source link

EdgeDNS akamai_dns_zone template incorrect for tsig_key #28

Closed jaescalo closed 1 year ago

jaescalo commented 1 year ago

The EdgeDNS create-zone command is adding tsig_key as an argument instead of a block for the akamai_dnszone resource in the main tf file. Because of this when Terraform tries to run the code it results in the error: │ An argument named "tsig_key" is not expected here. Did you mean to define a block of type "tsigkey"?

tsig_key as argument (INCORRECT):

  tsig_key = {
    name      = "example.com"
    algorithm = "hmac-sha256"
    secret    = "xxx"
  }

tsig_key as block (CORRECT):

  tsig_key {
    name      = "example.com"
    algorithm = "hmac-sha256"
    secret    = "xxx"
  }
wzagrajcz commented 1 year ago

Hello @jaescalo Thank You for opening this issue ticket. You are right, the tsig_key should be a block, not an argument. We will fix it.

Regards, Wojciech

lkowalsk-akamai-com commented 1 year ago

Hi @jaescalo, this issue was fixed in recent release.