code: def gen_sls_config_files(stage, region):
      
      names = []
      for ext in ['yml', 'json']:
          # Give preference to explicit stage-region files
          names.append(
              os.path.join('env',
                           "%s-%s.%s" % (stage, region, ext))
          )
          names.append("config-%s-%s.%s" % (stage, region, ext))
          # Fallback to stage name only
          names.append(
              os.path.join('env',
                           "%s.%s" % (stage, ext))
          )
          names.append("config-%s.%s" % (stage, ext))
      return names
docs: Generate possible SLS config files names.