HCL argument

A name, an equals sign and an expression inside a block, such as filename = "hello.txt", which sets one value.

In more detail

Which arguments a resource accepts, which are required and what they mean is decided by the provider, so the registry documentation is the reference. Arguments never nest inside other arguments, and terraform fmt lines up the equals signs of neighbouring ones.

Example

filename = "hello.txt"

Related terms

Taught in

References

Certification courses