You could do it using plain bash (with the Amazon command line tools) or Make, but that's probably no the most efficient way.
The most common option is using a configuration management tool. The one I'm most familiar with is Ansible.
GitLab CI is also a nifty tool for this, and using it could help with learning Ansible later.