Either Elastic's code used by Amazon is indeed stolen proprietary code and no licensing change is needed to obtain reparation, or Amazon is making lawful use of FOSS source code and the question boils down to "if I publish code under a FOSS license, can anybody use it?", to which the answer is obviously yes. And if you'd prefer it to be "no" then don't publish FOSS.
Regarding the trademark, this indeed seems (to my non-lawyer eyes) to be an infringement (or extremely borderline at the very least) but isn't related to licensing.