mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 18:56:57 -05:00
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com> Signed-off-by: Damian Stasik <920747+damianstasik@users.noreply.github.com> Signed-off-by: Roman Grinovski <roman.grinovski@gmail.com> Co-authored-by: Damian Stasik <920747+damianstasik@users.noreply.github.com> Co-authored-by: Roman Grinovski <roman.grinovski@gmail.com>
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
---
|
|
description: >-
|
|
OpenTofu language syntax for both the native and JSON variants. Also learn
|
|
formatting conventions that you can enforce with tofu fmt.
|
|
---
|
|
|
|
# Syntax
|
|
|
|
The majority of the OpenTofu language documentation focuses on the practical
|
|
uses of the language and the specific constructs it uses. The pages in this
|
|
section offer a more abstract view of the OpenTofu language.
|
|
|
|
- [Configuration Syntax](../../language/syntax/configuration.mdx) describes the native
|
|
grammar of the OpenTofu language.
|
|
- [JSON Configuration Syntax](../../language/syntax/json.mdx) documents
|
|
how to represent OpenTofu language constructs in the pure JSON variant of the
|
|
OpenTofu language. OpenTofu's JSON syntax is unfriendly to humans, but can
|
|
be very useful when generating infrastructure as code with other systems that
|
|
don't have a readily available HCL library.
|
|
- [Style Conventions](../../language/syntax/style.mdx) documents some commonly
|
|
accepted formatting guidelines for OpenTofu code. These conventions can be
|
|
enforced automatically with [`tofu fmt`](../../cli/commands/fmt.mdx).
|