Language Flashcards
What is the main purpose of Terraforms language?
To declare resources. This represents infrastructure objects. All the different features are present to accommodate more flexible and convenient resource definition
Syntax consists of:
- Block: contains for objects like resources
- Arguments: assign a value to a name
- Expressions: represent a value
Is it iterative or declarative?
Declarative: Describe intended goal istead of steps to reach the goal
Is the order significant?
No.
Terraform only cares for implicit and explicit relationships when determining the order of an operation.
What is the text encoding of .tf files?
UTF-8
What is a terraform module?
Modules are a collection of .tf and/or .tf.json files kept together in a directory. A module consits of only the top-level config files in the directory. A nested directory is treated as a separate module and may not be automatically included.
How do you override a file?
Use an override file. Should only be used for special occasions. Use comments in original files to reference possible overrides.
Name all syntax constructs:
- Argument
([argument_name] = “argument_value”]) - Blocks: container for other content. Each block defines how many labels it requires