Attribute

Attributes are used in blocks to configure behavior. An attribute has a name and is bound to a value - which is specific to the attribute of the block.

# this is an attribute initialized with a list of string
dependencies = [ "../project1"
                 "../project2" ]

# this attribute initialize specific dependencies
depends_on = [ build
               init ]

# this is an attribute initialized with a mapping
defaults = {
    arguments: { configuration: $configuration }
    image: "ghcr.io/example/" + $terrabuild_project
}
Last updated on