def upload_file(self, s3_key, local_path):
    s3_client = self.get_client()
    try:
        s3_client.upload_file(Filename=local_path, Bucket=self.bucket, Key=s3_key)
        return True
    except botocore.exceptions.ClientError:
        log_and_exit('Unable to upload file', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_400)
    except Exception:
        log_and_exit('Unable to upload file', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_500)
def upload_file(self, s3_key, local_path):
    s3_client = self.get_client()
    try:
        s3_client.upload_file(Filename=local_path, Bucket=self.bucket, Key=s3_key)
        return True
    except botocore.exceptions.ClientError:
        log_and_exit('Unable to upload file', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_400)
    except Exception:
        log_and_exit('Unable to upload file', SIMAPP_S3_DATA_STORE_EXCEPTION, SIMAPP_EVENT_ERROR_CODE_500)