Skip to content

URL-Encoding in Resource IDs (%2F) in Terraform Output Cause Corrupted Digger Comments #2510

@lucasr-psq

Description

@lucasr-psq

Here is an example resource from a local terraform plan output:

resource "google_service_networking_connection" "psa_connection" {
        id                      = "projects%2Facme-production-network%2Fglobal%2Fnetworks%2Facme-production-network:servicenetworking.googleapis.com"
        # (4 unchanged attributes hidden)
    }

Digger appears to be choking on the %2F characters in the psq_connection resource ID generated by terraform:

"projects%!!(MISSING)!(MISSING)!(MISSING)!(MISSING)F(MISSING)acme-production-network%!!(MISSING)!(MISSING)!(MISSING)!(MISSING)F(MISSING)global%!!(MISSING)!(MISSING)!(MISSING)!(MISSING)F(MISSING)networks%!!(MISSING)!(MISSING)!(MISSING)!(MISSING)F(MISSING)acme-production-network:servicenetworking.googleapis.com"

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