def region_from_environment(environment):
    """
    Returns the AWS region of the environment.
    """
    provider_opts = environment['provider_options']
    if environment['provider'] == 'aws':
        if 'region' in provider_opts['aws']:
            return provider_opts['aws']['region']
        else:
            return ','.join(provider_opts['aws']['regions'])
    elif environment['provider'] == 'aws_govcloud':
        return provider_opts['aws_govcloud']['region']
    return '-'