Skip to content

Create random_integer resource only if var.unique_name is true

Compare
Choose a tag to compare
@fabiendelpierre fabiendelpierre released this 23 Apr 20:06
· 3 commits to master since this release
d3ef7ca

The random_integer resource added in v1.1.0 was getting created in every case, even when var.unique_name is false. This release makes the creation of that resource conditional upon setting var.unique_name to true, since it's not used at all otherwise.

Also fixes the following three items:

  • Upgrading the module from v1.0.0 to v1.1.0 sometimes caused an unexplained diff in downstream resources. An unintended side effect of this refactor is that this weird diff doesn't occur anymore.
  • Updates the provider dependency syntax to TF 0.13+ standards with the source argument.
  • Explicitly declares a dependency on the random provider.

Due to the second point above, this release carries a breaking change and may no longer be used with versions of TF earlier than 0.13.0.