Unfortunately if you've hit this bug, your instance_id_mappings table is already polluted with duplicate entries and the mapping between EC2 IDs and UUIDs is skewed. Someone may know a better work around, but in the meantime I'd take a look at the instance_id_mappings table and clean it of duplicate entries, ensuring the original rows remain (those copied during the original migration) if you wish to get back the original EC2 IDs.
Jon-
Unfortunately if you've hit this bug, your instance_ id_mappings table is already polluted with duplicate entries and the mapping between EC2 IDs and UUIDs is skewed. Someone may know a better work around, but in the meantime I'd take a look at the instance_ id_mappings table and clean it of duplicate entries, ensuring the original rows remain (those copied during the original migration) if you wish to get back the original EC2 IDs.