What did amazon do wrong here?
While the metadata service isn't technically a vulnerability, it's poorly designed. Not enough thought went into its security, but too much relies on it for them to disable the current version overnight. Any changes are going to take many years.
This kind of thinking strikes me as exactly how Amazon gets away with this stuff.