A successful terraform apply followed immediately by terraform apply should result in no actions being proposed. The use of name_prefix in 2 locations within the the consul-cluster module causes the instance template to be unnecessarily modified on the 2nd and all subsequent runs. Root issue: a timestamp is appended to the prefix and, of course, time marches on.
I believe this could be fixed by switching from name-prefix to name with a dynamically generated name that is stored in tfstate. e.g.
A successful
terraform apply
followed immediately byterraform apply
should result in no actions being proposed. The use ofname_prefix
in 2 locations within the the consul-cluster module causes the instance template to be unnecessarily modified on the 2nd and all subsequent runs. Root issue: a timestamp is appended to the prefix and, of course, time marches on.I believe this could be fixed by switching from
name-prefix
toname
with a dynamically generated name that is stored in tfstate. e.g.There are a number of other options besides "pet names" which are of the form "wascally-wabbit". I'll put together a PR if one is welcome.