What does `null` mean in Terraform?
BeginnerConceptVariables, Locals, Outputs and Types
Answer
null means "no value". Setting an argument to null is the same as omitting it, so the provider default applies. It is useful in conditionals: kms_key_id = var.encrypt ? aws_kms_key.k.arn : null.
More on Variables, Locals, Outputs and Types
How do you declare an input variable?BeginnerIn what order does Terraform load variable values?BeginnerHow do you define an output and what is it for?BeginnerWhat is the difference between locals and variables?BeginnerWhat are the primitive types in Terraform?BeginnerHow do list, set and map differ?Intermediate