HCL

HCL

March 30, 2024 | seedling, permanent

tags :

HashiCorp Configuration Language #

specs HCL

Basics #

Syntax:


<block> <parameters> key1 = value1 key2 = value2


example:

resource "aws_instance" "example"
  ami = "abc123"

  network_interface
    # ...


# A block has a type (resource in this example).
# Each block type defines how many labels must follow the type keyword.
# The resource block type expects two labels, which are aws_instance and example in the example above.

Variables #

Resource Attributes #