I'm honestly truly surprised by the light conclusion after the whole story. Are you serious?
Juan, for the g** sake, please put this link in the end of the article: aws.amazon.com/premiumsupport/know... (at least)
If the story is true and you see so many people paying a visit to your article, make some efforts to go a bit deeper than "Never leave your api keys on public repositories".
I mean, really - use the leverage of your story and influence. Add value instead of closing it as lightly as something so obvious when there are other and better ways, which btw are mentioned in comments which are not effective ...
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.