code: def upload_to_s3(self, region='us-east-1'):
          
          s3_import_cmd = "aws s3 cp {} s3://{} --profile '{}' --region {}".format(self.upload_file, self.bucket_name,
                                                                                   self.aws_project, region)
          print "Uploading to bucket {} in s3 with the cmd: {}".format(self.bucket_name, s3_import_cmd)
          # s3 upload puts DL progress to stderr
          s3_upload = subprocess.Popen(shlex.split(s3_import_cmd), stderr=subprocess.PIPE)
          while True:
              progress = s3_upload.stderr.readline()
              if progress == '' and s3_upload.poll() is not None:
                  break
              if progress:
                  print (progress)
          rc = s3_upload.poll()
          if rc != 0:
              raise subprocess.CalledProcessError(rc)
          print "Upload completed successfully"
docs: Uploads the vmdk file to aws s3
          :param file_location: location of vmdk
          :return: