code: def copy_ami_to_new_name(self, ami_id, new_name, source_region='us-east-1'):
          
  
          new_image_ids = []
  
          for region in self.aws_regions:
              copy_img_cmd = "aws ec2 copy-image --source-image-id {} --profile {} --source-region {} --region {} --name {}"\
                  .format(ami_id, self.aws_project, source_region, region, new_name)
              res = subprocess.check_output(shlex.split(copy_img_cmd))
  
              print "Copy cmd returned: {}".format(res)
  
              new_image_id = json.loads(res).get('ImageId')
              new_image_ids.append((new_image_id, region))
  
              print "new image Id is: {}".format(new_image_id)
  
          print "monitoring the copies for the following regions/id : {}".format(new_image_ids)
          for tupp in new_image_ids:
              image_id = tupp[0]
              image_region = tupp[1]
              self.wait_for_copy_available(image_id, image_region)
docs: Copies an AMI from the default region and name to the desired name and region
          :param ami_id: ami id to copy
          :param new_name: name of the new ami to create
          :param source_region: the source region of the ami to copy