def create_snapshot_repo(client, repo_name, s3_bucket):
    """
    Creates a repo to store ES snapshots on

    info about snapshots on AWS
    https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains-snapshots.html
    """
    snapshot_body = {'type': 's3', 'settings': {'bucket': s3_bucket,
        'region': 'us-east-1', 'role_arn':
        'arn:aws:iam::643366669028:role/S3Roll'}}
    return client.snapshot.create_repository(repository=repo_name, body=
        snapshot_body)
