This is a Python3 script that will check all instances to see if they have a tag as specified by the script
Modify the script to check for the Key you want. If the Key is not present in the instances tag the script will automatically add the tag that you define via JSON.
The script will rerun to check to see that all instances have been assigned the specified tag.