2020-10-27 02:15:36 +01:00
|
|
|
---
|
|
|
|
layout: "language"
|
|
|
|
page_title: "Syntax Overview - Configuration Language"
|
2021-07-07 19:23:48 +02:00
|
|
|
description: |-
|
|
|
|
An introduction to Terraform Configuration Language syntax for both the native and JSON variants as well as formatting conventions.
|
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-01-15 23:13:53 +01:00
|
|
|
- [Configuration Syntax](/docs/language/syntax/configuration.html) describes the native
|
2020-10-27 02:15:36 +01:00
|
|
|
grammar of the Terraform language.
|
2021-01-15 23:13:53 +01:00
|
|
|
- [JSON Configuration Syntax](/docs/language/syntax/json.html) 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-01-15 23:13:53 +01:00
|
|
|
- [Style Conventions](/docs/language/syntax/style.html) documents some commonly
|
2020-10-27 02:15:36 +01:00
|
|
|
accepted formatting guidelines for Terraform code. These conventions can be
|
2021-01-19 22:43:01 +01:00
|
|
|
enforced automatically with [`terraform fmt`](/docs/cli/commands/fmt.html).
|