it may be better to change the cloud_instances from an array to a dict this may simplify reading and writing to a file while using json.