Language Flashcards

1
Q

What is the main purpose of Terraforms language?

A

To declare resources. This represents infrastructure objects. All the different features are present to accommodate more flexible and convenient resource definition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Syntax consists of:

A
  • Block: contains for objects like resources
  • Arguments: assign a value to a name
  • Expressions: represent a value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is it iterative or declarative?

A

Declarative: Describe intended goal istead of steps to reach the goal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Is the order significant?

A

No.
Terraform only cares for implicit and explicit relationships when determining the order of an operation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the text encoding of .tf files?

A

UTF-8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a terraform module?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you override a file?

A

Use an override file. Should only be used for special occasions. Use comments in original files to reference possible overrides.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name all syntax constructs:

A
  1. Argument
    ([argument_name] = “argument_value”])
  2. Blocks: container for other content. Each block defines how many labels it requires
How well did you know this?
1
Not at all
2
3
4
5
Perfectly