This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Description
The terraform instance plugin's DescribeInstances may fail if there are multiple groups. During the tag checking, if a tag does not match then the following is executed:
This is tied to an outer for loop:
// now we scan for <instance_type.instance-<timestamp> as keys
scan:
for t, vm := range localSpecs {
for k, v := range vm {
matches := re.FindStringSubmatch(string(k))
The other loops is a 2D array with the resource type as the 0th element. This element will be the resource type; if this outer for loop is continued then all of the elements of the same resource type are not processed.
The fix is to move the scan: declaration to the next for loop so all of the resources are processed.