How to learn terraform from zero¶
learning from creating projects is the best way but we still need to know where to start.
basic commands¶
init
plan
apply
read the docs¶
read the docs to understand
how terraform works,
api
state
module
api¶
- where to include api version
module¶
modules are just like functions in other programming languages, they have
inputs: variables
main: code used to create resources
outputs: outputs from the created resources
state¶
where to save state
how to import state
how to sync state
data type¶
string
number
map
object
expression¶
conditional
loop
optional properties¶
null: optional properties
dynamic blocks: optional blocks