Amazon investing into the Firefox OS would be super beneficial for both companies long term. With AWS, Amazon is already powering a big chunk of the web so supporting Firefox /OS and help it become the best mobile web client makes sense and will make a ton of developers happy, which is all they need to do for now if they want a larger piece of the mobile market.
And you know, makes sense branding-wise. A Fire phone runs Firefox!