def upload_object(**kwargs):
    """Upload an object into bucket."""
    filename = kwargs.get('local_path', '')
    local_path = kwargs.get('local_path')
    if kwargs.get('object_name'):
        filename = kwargs.get('object_name')
    resource = kwargs.get('resource')
    bucket_name = kwargs.get('bucket_name')
    resource.Object(bucket_name, filename).upload_file(Filename=local_path)
