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

Your team wants to prevent an incorrectly formatted value from being supplied for an input variable named `instance_type`. You need Terraform to reject any value that does not start with the letter 't' and produce a clear error message during the plan phase, without relying on the provider to fail later. Which addition to the variable block accomplishes this?

Reviewed for accuracy · Report an issueNext question