akamai / terraform-provider-akamai

Terraform Akamai provider

Home Page:https://www.terraform.io/docs/providers/akamai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DXE-2940 akamai_dns_zone errors due to optional group parameter

brucep-care opened this issue · comments

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Terraform v1.3.7
on linux_amd64
+ provider registry.terraform.io/akamai/akamai v5.1.0

Affected Resource(s)

akamai_dns_zone

Terraform Configuration Files

resource "akamai_dns_zone" "xxx-test_com" {
    contract = "3-XXXXXXX"
    zone = xxx-test.com
    type = "PRIMARY"
    comment = "test"
}

Expected Behavior

Zone should be created upon apply

Actual Behavior

Error: value not found: group

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

The Akamai documentation for this resource indicates the group parameter is optional. Furthermore, the example provided in the documentation indicates a value such as 100 can be provided as a value to this parameter. Specifying a blank value for this parameter, a number as shown in the example, or any other value results in a cryptic error message:

Title: Illegal parameter value; Type: https://problems.luna.akamaiapis.net/authoritative-dns/illegalValue; Detail: Illegal value for request parameter 'gid'

Hello, please confirm that you have more than one group in your context that have Edge DNS entitlements.

Yes, we do. I am able to create new zones through the portal but I'm unable to via terraform due to this issue.

Are you able to mitigate this issue by providing group_id in the akamai_dns_zone resource?

@brucep-care , were you able to verify if the mitigation steps work for you?