Skip to content

provider functions trip up terraform-diff #7

@ohookins

Description

@ohookins
terraform-diff -range "origin/master" deployments/xxxx/
failed getting dependencies for folder deployments/xxxx: Error processing: Missing attribute separator: Expected a newline or comma to mark the beginning of the next attribute. (and 1 other messages)

I believe it's due to this:

data "aws_iam_policy_document" "xxxx" {
  statement {
    actions = ["sts:AssumeRole"]
    principals {
      type = "AWS"
      identifiers = [
        provider::aws::arn_build("aws", "iam", "", "xxxx", "role/zzzz"),
        provider::aws::arn_build("aws", "iam", "", "yyyy", "role/zzzz")
      ]
    }
  }
}

Can't comment on why though, just yet. I expect the parser is tripping over the multiple commas in the function invocation.

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