Skip to content

0.3.2

Compare
Choose a tag to compare
@aknysh aknysh released this 27 Feb 01:47
def628b

what

  • Use join+splat pattern for outputs using resources with count

why

  • New Terraform versions complain if a resource with count is used in outputs without splat syntax

Resource 'null_resource.default' not found for variable 'null_resource.default.triggers.id'

Terraform will now detect and warn about outputs containing potentially-problematic references to resources with count set where the references does not use the "splat" syntax. This identifies situations where an output may reference a resource with count = 0 even if the count expression does not currently evaluate to 0, allowing the bug to be detected and fixed before the value is later changed to 0 and would thus become an error. This usage will become a fatal error in Terraform 0.12. (#16735)