Skip to content

Recursive attribute definitions #95

@ewbankkit

Description

@ewbankkit

AWS::WAFv2::RuleGroup and AWS::WAFv2::WebACL have recursive attribute definitions such as

"Statement": {
    "properties": {
        "AndStatement": {
            "$ref": "#/definitions/AndStatement"
        },
    }
}

"AndStatement": {
    "properties": {
      "Statements": {
        "type": "array",
        "items": {
          "$ref": "#/definitions/Statement"
        }
      }
    }
}

which lead to Go panics during Terraform schema code generation.
For now we are not generating these resources but we should attempt to solve by capping the number of levels of recursion as we do in the current provider: https://github.com/hashicorp/terraform-provider-aws/blob/main/aws/resource_aws_wafv2_web_acl.go#L131.

Relates:

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-generationRelates to the conversion of CloudFormation schema to Terraform schema at buildtime.resource-suppressionIssue that prevents a resource from being generated.upstream-terraform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions