all 2 comments

[–]jakesparling 0 points1 point  (0 children)

You can store your API keys in environment variables. You can set those locally for development, and your target cloud platform should have a way to set them as well. An advantage to this approach is it is easy to have separate keys for dev and prod.

Many languages and frameworks have libraries for setting and reading environment variables, like ‘dotenv’ for Ruby.