Mirantis / launchpad

Other
27 stars 45 forks source link

Terraform examples issue a deprecation warning #66

Closed cognomaton closed 3 years ago

cognomaton commented 3 years ago

When using the provided examples for Terraform, the following warning is displayed:

Warning: Interpolation-only expressions are deprecated

  on modules/master/main.tf line 29, in locals:
  29:   subnet_count = "${length(var.subnet_ids)}"

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and 6 more similar warnings elsewhere)

This is a minor issue, and hopefully easy to fix. But as a new user, it causes me unnecessary noise and friction when inexperienced with Terraform and Launchpad and MKE, and trying to focus on the task at hand.