Skip to content

Instantly share code, notes, and snippets.

@egarbi
Created June 7, 2016 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egarbi/e239e1edf916f72e437a24964478b8e0 to your computer and use it in GitHub Desktop.
Save egarbi/e239e1edf916f72e437a24964478b8e0 to your computer and use it in GitHub Desktop.
taint in one instance triggers the provisioning in all of them
I have this "triggers { cluster_instance_ids = "${element(aws_instance.elasticsearch.*.id, count.index)}" }"
associated to 2 elasticsearch instances
now the problem is, suppose I need to rebuild just one instance...
$ terraform taint -state=terraform.tfstate.test -module=escluster aws_instance.elasticsearch.1
the trigger is actually triggering the reprovision in both instances
not only on the one was tainted
ideas?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment