Settings, Providers & Resources Flashcards

1
Q

what does terraform block comprise of

A

terraform version, providers and backend

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

can we use variable in terraform block

A

no, constant only

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

what is terraform backend

A

a place to store terraform state files

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

if not defined where does the state files live

A

in the root module of current working directory

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

what does ~>0.14 means

A

any version from 0.14 will be allowed

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

what does required_version in settings block signifies

A

the version of terraform to use

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

what does required_provider in settings signifies

A

the name and version of the provider

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

how does the block and map declaration differ

A

terraform{} is a block and aws={} is a map

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

what is local name of the provider

A

the name used to create the map comprising of source and version of the provider

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

why local name of a provider is needed

A

outside of required_provider block the name is being used by all other subsequent steps

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

what is the default registry of terraform

A

registry.terraform.io

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

how does the credibility of provider certified

A

through provider badged

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

what are the badges

A

official, verified, community and archived

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

what does provider section comprises of for aws

A

region and profile

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

how many labels can a block have

A

multiple but tied to the block type

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

what are the input of the block

A

argument

17
Q

what is the first label of the resource

A

resource type

18
Q

what is the second label of the resource

A

resource local name

19
Q

when does the terraform.tfstate file gets created

A

whenever the apply command is being issued

20
Q

what are the components of a variable declaration

A

variable name, description, type, default, sensitive

21
Q

how can variables be validated

A

using validation block

22
Q

how is variable being referred

A

using var.variable_name style