def register_resource_on_tier(ts, tier, attributes):
    """
    Tier registration callback.
    'tier' is from table 'tiers'.
    'attributes' is a dict containing optional attributes for default values.
    """
    tier.setdefault('service_user', {'password': 'SERVICE', 'username':
        'user+pass:$SERVICE$'})
