Schema auto-inferred #94
calebAtIspot
started this conversation in
Ideas
Replies: 1 comment
-
Thank you for raising this idea. I agree that explicit schema declaration feels redundant, but HCL is a syntax-agnostic, schema-driven language, and there is no standard mechanism for automatically inferring schemas. To achieve this, the following approaches may be considered:
My current understanding is that these become too complex, so we're taking the current approach of forcing explicit schema declarations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice if the schema was auto-inferred from the resource so you don't have to manually specify it. In a Ideal world if I had a resource like
then I could just do
terraform.data_sources("aws_ami")
instead ofterraform.data_sources("aws_ami", {"statement": {"sid": "string"}}, {})
Beta Was this translation helpful? Give feedback.
All reactions