Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXE-2830 Declarative Property Manager fails on cors_support behavior with default settings #438

Closed
jaescalo opened this issue Jun 28, 2023 · 1 comment

Comments

@jaescalo
Copy link

In PM akamai_property_rles_builder the cors_support behavior with expose_headers = [] (empty array) causes the TF apply to fail with the error:

"The Expose Headers option on the `CORS Protocol Support` behavior is required."

If we provide any value to the array (i.e. expose_headers = ["pragma"] then the TF apply works with no issues. However an empty array should also be allowed.

Terraform Version

Terraform v1.5.1
on darwin_arm64
provider registry.terraform.io/akamai/akamai v4.1.0

Affected Resource(s)

  • data akamai_property_rules_builder

Terraform Configuration Files

    behavior {
      cors_support {
        allow_credentials = false
        allow_headers     = "ANY"
        allow_origins     = "ANY"
        enabled           = true
        expose_headers    = []
        methods           = ["GET", "POST", ]
        preflight_max_age = "600s"
      }
    }

Error Output

│ Error: activation cannot continue due to rule errors: [
│ 	{
│ 		"behavior_name": "",
│ 		"detail": "The Expose Headers option on the `CORS Protocol Support` behavior is required.",
│ 		"error_location": "#/rules/behaviors/1/options/exposeHeaders",
│ 		"instance": "",
│ 		"status_code": 0,
│ 		"title": "",
│ 		"type": "https://problems.luna.akamaiapis.net/papi/v0/validation/attribute_required"
│ 	}
│ ]
│
│   with akamai_property_activation.jaescalo_terraform-prod,
│   on property.tf line 46, in resource "akamai_property_activation" "jaescalo_terraform-prod":
│   46: resource "akamai_property_activation" "jaescalo_terraform-prod" {
│
@majakubiec majakubiec changed the title Declarative Property Manager fails on cors_support behavior with default settings DXE-2830 Declarative Property Manager fails on cors_support behavior with default settings Jun 30, 2023
@aka-mark aka-mark added the bug label Sep 12, 2023
@lkowalsk-akamai-com
Copy link
Contributor

This issue should now be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants