code: def deploy_service(ctx, path, name, regions, disabled):
      
      enabled = False if disabled else True
  
      swag = create_swag_from_ctx(ctx)
      accounts = swag.get_all(search_filter=path)
      log.debug('Searching for accounts. Found: {} JMESPath: `{}`'.format(len(accounts), path))
      for a in accounts:
          try:
              if not swag.get_service(name, search_filter="[?id=='{id}']".format(id=a['id'])):
                  log.info('Found an account to update. AccountName: {name} AccountNumber: {number}'.format(name=a['name'], number=a['id']))
                  status = []
                  for region in regions:
                      status.append(
                          {
                              'enabled': enabled,
                              'region': region
  
                           }
                      )
                  a['services'].append(
                      {
                          'name': name,
                          'status': status
                       }
                  )
  
                  swag.update(a, dry_run=ctx.dry_run)
          except InvalidSWAGDataException as e:
              log.warning('Found a data quality issue. AccountName: {name} AccountNumber: {number}'.format(name=a['name'], number=a['id']))
  
      log.info('Service has been deployed to all matching accounts.')
docs: Deploys a new service JSON to multiple accounts. NAME is the service name you wish to deploy.