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

provider functions trip up terraform-diff #7

Open
ohookins opened this issue Dec 2, 2024 · 1 comment
Open

provider functions trip up terraform-diff #7

ohookins opened this issue Dec 2, 2024 · 1 comment

Comments

@ohookins
Copy link
Contributor

ohookins commented Dec 2, 2024

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.

@yannh
Copy link
Collaborator

yannh commented Dec 2, 2024

Maybe needs an update of the parser library? 🤔

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

No branches or pull requests

2 participants