Commands COPY Flashcards

To learn each Terraform command and what it does.

1
Q

Builds or changes infrastructure according to Terraform configuration files.

A

apply

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

Starts an interactive console for experimenting with Terraform interpolations but never alters the state.

A

console

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

Destroys Terraform-managed infrastructure and asks for confirmation before doing so.

A

destroy

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

Used to rewrite Terraform configuration files to a cannonical format and style.

A

fmt

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

Used to manually remove lock on the state for the current configuration.

A

force-unlock

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

Used to download and update modules

A

get

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

Used to generate a graph or configuration or an execution plan.

A

graph

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

Used to find existing resources and import them.

A

import

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

Used to initialize a working directory. This is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control.

A

init

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

Used to extract the value of an output variable.

A

output

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

Used to create an execution plan

A

plan

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

Used to print information about providers.

A

providers

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

Used to upload your configuration.

A

push

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

Used to update the state file. Can be used to detect any dift. Modifies the state file.

A

refresh

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

Used to provide output from a state or plan file.

A

show

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

Used for advanced state management.

A

state

17
Q

Used to mark resources as tainted. Forces resources to be destroyed and recreated on the next apply.

A

taint

18
Q

Used to validate the syntax of Terraform files.

A

validate

19
Q

Unmark a resource as tainted. Updates the taint file.

A

untaint

20
Q

Used to manage workspaces.

A

workspace