VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

data.aws_iam_policy looked up by name is flagged as an error #339

Closed snstanton closed 3 years ago

snstanton commented 3 years ago

Thank you for opening an issue. In this template paragraph text could be removed, however please retain headers.

Prerequisites

Installation details

Terraform Configuration Files

data "aws_iam_policy" "mypolicy" { name = "mypolicy" }

Exception

Expected Behavior

This is legal syntax for the data object aws_iam_policy.

Actual Behavior

It is flagged as missing a required "arn" argument. Only one of "name" or "arn" is required.

Steps to Reproduce

Load the above file into a .tf editor window and notice the data block is flagged.

VladRassokhin commented 3 years ago

Fixed in 0.7.11