def get_igm_outputs(name, igm_properties):
    """ Creates Instance Group Manaher (IGM) resource outputs. """

    location_prop = 'region' if 'region' in igm_properties else 'zone'

    return [
        {
            'name': 'selfLink',
            'value': '$(ref.{}.selfLink)'.format(name)
        },
        {
            'name': 'name',
            'value': name
        },
        {
            'name': 'instanceGroupSelfLink',
            'value': '$(ref.{}.instanceGroup)'.format(name)
        },
        {
            'name': location_prop,
            'value': igm_properties[location_prop]
        }
    ]