Terraform — Optional Values

A quick article discussing the options for having optional values in your variables in Terraform.

Suppose we have the below variable definition;

variable "my_object" {
type = object({
id = number,
name = string,
description = string
})
description = "(Required) A required variable"
}