79460547

Date: 2025-02-23 01:23:34
Score: 1
Natty:
Report link

According to the Terraform docs,

If nullable is false and the variable has a default value, then Terraform uses the default when a module input argument is null.

Adding nullable=false to your module variables ensures that modue defaults are used, not provider defaults. Tested and confirmed. Arguably slightly counterintuative but it works.

Thanks to Greg Hensley for this one.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: James Geddes