old_contents: 
  def GenerateConfig(context):
      config={}
      config['resources'] = []
  
      for group in context.properties['groups']:
          groupJSON = {
              'name': context.env['deployment'] + '-' + context.properties['cluster'] + '-' + group['group'],
              'type': 'group.py',
              'properties': {
                  'serverVersion': context.properties['serverVersion'],
                  'couchbaseUsername': context.properties['couchbaseUsername'],
                  'couchbasePassword': context.properties['couchbasePassword'],
                  'license': context.properties['license'],
                  'cluster': context.properties['cluster'],
                  'region': context.properties['region'],
                  'group': group['group'],
                  'diskSize': group['diskSize'],
                  'nodeCount': group['nodeCount'],
                  'nodeType': group['nodeType'],
                  'services': group['services']
              }
          }
          config['resources'].append(groupJSON)
      return config
  
new_contents: 
  def GenerateConfig(context):
      config={}
      config['resources'] = []
  
      for group in context.properties['groups']:
          groupJSON = {
              'name': '-'.join(context.env['deployment'].split("-")[-2:])[-20:] + '-' + context.properties['cluster'] + '-' + group['group'],
              'type': 'group.py',
              'properties': {
                  'serverVersion': context.properties['serverVersion'],
                  'couchbaseUsername': context.properties['couchbaseUsername'],
                  'couchbasePassword': context.properties['couchbasePassword'],
                  'license': context.properties['license'],
                  'cluster': context.properties['cluster'],
                  'region': context.properties['region'],
                  'group': group['group'],
                  'diskSize': group['diskSize'],
                  'nodeCount': group['nodeCount'],
                  'nodeType': group['nodeType'],
                  'services': group['services']
              }
          }
          config['resources'].append(groupJSON)
      return config
  
subject: Update cluster.py