Terraform Flashcards

1
Q

what is HCL?

A

hashicor configuration langua
ge, files end in .tf

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

what is the config syntax for a resource?

A

resource “<PROVIDER>_<TYPE>" "<NAME whatever you want"> {</TYPE></PROVIDER>

key = “value”
key2= “value2”
}

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

what does terraform init do?

A

it will read files and download need providers and initialize plugins

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

what does terraform plan do?

A

it will do a dry run of your code to see what it is about to do, always do this just to make you’re not going to break anything, ie. confirm output is expected.

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

is terraform impertive?

A

no it’s declaratrive, your tf files are defining an end-state.

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

what does terraform destroy do by default?

A

destroys entire infrastructure, everything created w/ terraform.

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

how do you delete a resource?

A

simply delete it in the tf file and terraform will understand that you want to destroy it.

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