Amazon is not very friendly towards open-source. When I was there, I believe their policy was that you needed to ask for permission to contribute to any open-source project. The policy was broad (covering things like code snippets on StackOverflow or /r/programming on Reddit) and strict (I heard they would not approve anything related to game development). There definitely were folks who contributed to open-source projects -- I think those people either didn't ask for permission or had friendly managers.
If you have something new you want to work on, you normally need to contact your company's legal or HR team and get signoff that you are allowed to work on it (and that you can maintain ownership of it).
https://www.quora.com/Can-a-company-claim-ownership-of-a-per...
The first time I assumed that it was just a freak thing, after the second time I asked around and got the vibe it was completely normal for a variety of reasons, often because a manager on the interview cycle with more clout decided they liked you and you were therefor going to be working for them.
I like a lot of things they build and believe there are some very talented people there, but at what cost am I willing to participate in that activity directly? Not that high, I'll just reap the fruits of their labor from the outside.
Anyway, this guy was frank enough with me about that stuff, that I actually believe him when he said that all those bad articles about amazon's culture (which had just come out weeks prior at that point) were probably accurate for some parts of the company, but he had never encountered it.
I didn't end up getting an offer from them ( I wouldn't have hired me based on the tech interviews either. Every single applied programming problem was some form a tree traversal, which I don't use regularly anymore) and was a little relieved that I wouldn't end up working there.