2020-10-27 02:15:36 +01:00
|
|
|
---
|
2021-12-15 03:41:17 +01:00
|
|
|
page_title: Syntax Overview - Configuration Language
|
|
|
|
description: >-
|
|
|
|
Terraform language syntax for both the native and JSON variants. Also learn
|
|
|
|
formatting conventions that you can enforce with terraform fmt.
|
2020-10-27 02:15:36 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
# Syntax
|
|
|
|
|
|
|
|
The majority of the Terraform 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 Terraform language.
|
|
|
|
|
2021-12-15 03:41:17 +01:00
|
|
|
- [Configuration Syntax](/language/syntax/configuration) describes the native
|
2020-10-27 02:15:36 +01:00
|
|
|
grammar of the Terraform language.
|
2021-12-15 03:41:17 +01:00
|
|
|
- [JSON Configuration Syntax](/language/syntax/json) documents
|
2020-10-27 02:15:36 +01:00
|
|
|
how to represent Terraform language constructs in the pure JSON variant of the
|
|
|
|
Terraform language. Terraform'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.
|
2021-12-15 03:41:17 +01:00
|
|
|
- [Style Conventions](/language/syntax/style) documents some commonly
|
2020-10-27 02:15:36 +01:00
|
|
|
accepted formatting guidelines for Terraform code. These conventions can be
|
2021-12-15 03:41:17 +01:00
|
|
|
enforced automatically with [`terraform fmt`](/cli/commands/fmt).
|