Basics Flashcards

1
Q

What are the core workflow of terraform

A
  1. terraform init - initialize working directory; provider resource download
  2. terraform validate - validate terraform configuration file
  3. terraform plan - generate execution plan
  4. terraform apply - apply the changes
  5. terraform destroy - destroy the resources
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is terraform lock file

A

Terraform lock file is the one that specifies the absolute version of the provider that it is able to download and use

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

What is the extension of terraform files

A

.tf

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

What are the high level components of terraform file

A

Block, Comments, Argument, Identifier

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

What is block inside block

A

A block declared inside a block; example provisioner block

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

What are top level blocks

A
  1. Settings
  2. Provider
  3. Resource
  4. Local Values
  5. Input Variables
  6. Output Values
  7. Data Sources
  8. Modules
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 3 major blocks

A

Fundamental Block

Variable Block

Calling/Reference Block

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

What is fundamental bloc

A

Setting

Resource

Provider

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

What are variable block

A

Input variable

Output value

Local value

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

What are calling or referencing block

A

Data sources

Module

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