Settings, Providers & Resources Flashcards
(22 cards)
what does terraform block comprise of
terraform version, providers and backend
can we use variable in terraform block
no, constant only
what is terraform backend
a place to store terraform state files
if not defined where does the state files live
in the root module of current working directory
what does ~>0.14 means
any version from 0.14 will be allowed
what does required_version in settings block signifies
the version of terraform to use
what does required_provider in settings signifies
the name and version of the provider
how does the block and map declaration differ
terraform{} is a block and aws={} is a map
what is local name of the provider
the name used to create the map comprising of source and version of the provider
why local name of a provider is needed
outside of required_provider block the name is being used by all other subsequent steps
what is the default registry of terraform
registry.terraform.io
how does the credibility of provider certified
through provider badged
what are the badges
official, verified, community and archived
what does provider section comprises of for aws
region and profile
how many labels can a block have
multiple but tied to the block type
what are the input of the block
argument
what is the first label of the resource
resource type
what is the second label of the resource
resource local name
when does the terraform.tfstate file gets created
whenever the apply command is being issued
what are the components of a variable declaration
variable name, description, type, default, sensitive
how can variables be validated
using validation block
how is variable being referred
using var.variable_name style