code: def process_configs(file_lookup, app_config_format, pipeline_config):
      
      app_configs = collections.defaultdict(dict)
      for env in ENVS:
          file_json = app_config_format.format(env=env)
          try:
              env_config = file_lookup.json(filename=file_json)
              app_configs[env] = apply_region_configs(env_config)
          except FileNotFoundError:
              LOG.critical('Application configuration not available for %s.', env)
              continue
  
      try:
          app_configs['pipeline'] = file_lookup.json(filename=pipeline_config)
      except FileNotFoundError:
          LOG.warning('Unable to process pipeline.json. Using defaults.')
          app_configs['pipeline'] = {'env': ['stage', 'prod']}
  
      LOG.debug('Application configs:\n%s', app_configs)
      return app_configs
docs: Processes the configs from lookup sources.
  
      Args:
          file_lookup (FileLookup): Source to look for file/config
          app_config_format (str): The format for application config files.
          pipeline_config (str): Name/path of the pipeline config
  
      Returns:
          dict: Retreived application config