def cognito_pool_url(aws_pool_region, cognito_pool_id):
    """ Function to create the AWS cognito issuer URL for the user pool using
    the pool id and the region the pool was created in.

    Returns: The cognito pool url
    """
    return 'https://cognito-idp.{}.amazonaws.com/{}'.format(aws_pool_region,
        cognito_pool_id)
