Randomised Suffix in Terraform Resource Names

from blog Blog on hjr265.me, | ↗ original
I didn’t like how I named cloud resources for Toph. The resource names had sequential suffixes at the end. Let’s take Toph’s storage servers, for example, where MongoDB replicas are running. On Linode, while they were there, I had named the three storage servers as toph-storage-sgp-1, toph-storage-sgp-2 and toph-storage-sgp-3. But as I moved them...