Basics Flashcards
1
Q
What are the core workflow of terraform
A
- terraform init - initialize working directory; provider resource download
- terraform validate - validate terraform configuration file
- terraform plan - generate execution plan
- terraform apply - apply the changes
- terraform destroy - destroy the resources
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
3
Q
What is the extension of terraform files
A
.tf
4
Q
What are the high level components of terraform file
A
Block, Comments, Argument, Identifier
5
Q
What is block inside block
A
A block declared inside a block; example provisioner block
6
Q
What are top level blocks
A
- Settings
- Provider
- Resource
- Local Values
- Input Variables
- Output Values
- Data Sources
- Modules
7
Q
What are the 3 major blocks
A
Fundamental Block
Variable Block
Calling/Reference Block
8
Q
What is fundamental bloc
A
Setting
Resource
Provider
9
Q
What are variable block
A
Input variable
Output value
Local value
10
Q
What are calling or referencing block
A
Data sources
Module