What type of block is used to construct a collection of nested configuration blocks?
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
You are writing a child Terraform module that provisions an AWS instance. You want to reference the IP address returned by the child module in the root configuration. You name the instance resource "main'.
Which of these is the correct way to define the output value?
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
Which of the following should you add in the required_providers block to define a provider version constraint?
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
A provider configuration block is required in every Terraform configuration.
Example:
Exhibit:
resource "kubernetes_namespace" "example" {
name = "test"
}
A resource block is shown in the exhibit. How would you reference the name attribute of this resource in HCL?