open to file for updating, create if does not exist. Remove self argument in get_elastic_ip