Terraform state Flashcards

1
Q

What is a backend?

A

A “backend” in Terraform determines how state is loaded and how an operation such as apply is executed.

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

Local backend

A

The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.

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

Default path for local backend

A

terraform.tfstate

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

state locking

A

If supported by your backend, Terraform will lock your state for all operations that could write state.

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

remote backends

A

Remote backends allow Terraform to use a shared storage space for state data, so any member of your team can use Terraform to manage the same infrastructure.

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

refresh

A

The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure.

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