Last week, I have needed to change some configs in our AWS CloudFormation templates in multiple Git repositories for multiple environments. (Sometimes we need to do similar changes like that.) So I created a simple Python script for making these changes.

This script is useful when you want to change multiple part of multiple files in multiple git repositories in bulk. Script creates a new branch from the given base branch and commits changes into it. Maybe pushing to remote also could be added with a small change.

I used this script for changing the auto scaling configs inside the CloudFormation templates for multiple micro services in our project.