🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)145 / 150
Question 145 of 150

You are writing a Terraform configuration and want to declare an input that lets operators optionally override the instance size, but defaults to "t3.micro" when no value is supplied. You add the following to variables.tf: variable "instance_type" { type = string default = "t3.micro" } During 'terraform plan', no value is passed for this variable on the command line, in a .tfvars file, or via an environment variable. What happens?

Reviewed for accuracy · Report an issueNext question