Skip to content

Generating cloudflare_access_application objects mixes attributes from the wrong objects #943

@carlosefr

Description

@carlosefr

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the library and it is still present.

cf-terraforming version

0.24.0

Expected outcome

When exporting cloudflare_access_application objects, the exported objects should only contain attributes (e.g. policies) from those objects.

Actual outcome

When exporting cloudflare_access_application objects, the exported objects contain attributes (e.g. policies) that belong to other objects.

Steps to reproduce

  1. Run cf-terraforming generate --terraform-binary-path /opt/homebrew/bin/terraform --token $CLOUDFLARE_API_TOKEN -a $ACCOUNT_ID --resource-type cloudflare_access_application > applications.tf
  2. Look at the generated applications.tf file, and see how many objects refer to the wrong policies, that actually belong to other objects.

References

I'm using the cloudflare provider v4.52.0 and terraform v1.9.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions