Introduction
Sometimes you want to leave a setting empty or optional in your infrastructure code. Terraform lets you use null values to skip or ignore those settings safely without errors.
When you want to create a resource but leave some optional fields empty.
When you want to conditionally include a value only if it exists.
When you want to avoid errors from missing or empty inputs in your configuration.
When you want to write reusable modules that accept optional parameters.
When you want to override a default value with no value at all.