def METHOD_NAME(config_file_path: str, s3_tmp_dir):
    """
    - This function will merge all S3 config files during upgrade
    - This function should be used outside this file to call configs upgrade
    """
    # Use existing s3-deployment-logger or setup new console logger
    setup_logger()
    g_upgrade_items = {
    's3' : {
            'configFile' : os.path.join(config_file_path, "s3/conf/s3config.yaml"),
            'oldSampleFile' : os.path.join(s3_tmp_dir, "s3config.yaml.sample.old"),
            'newSampleFile' : os.path.join(config_file_path, "s3/conf/s3config.yaml.sample"),
            'unsafeAttributesFile' : os.path.join(config_file_path, "s3/conf/s3config_unsafe_attributes.yaml"),
            'fileType' : 'yaml://'
        },
        'auth' : {
            'configFile' : os.path.join(config_file_path, "auth/resources/authserver.properties"),
            'oldSampleFile' : os.path.join(s3_tmp_dir, "authserver.properties.sample.old"),
            'newSampleFile' : os.path.join(config_file_path, "auth/resources/authserver.properties.sample"),
            'unsafeAttributesFile' : os.path.join(config_file_path, "auth/resources/authserver_unsafe_attributes.properties"),
            'fileType' : 'properties://'
        },
        'keystore' : {
            'configFile' : os.path.join(config_file_path, "auth/resources/keystore.properties"),
            'oldSampleFile' : os.path.join(s3_tmp_dir,"keystore.properties.sample.old"),
            'newSampleFile' : os.path.join(config_file_path, "auth/resources/keystore.properties.sample"),
            'unsafeAttributesFile' : os.path.join(config_file_path, "auth/resources/keystore_unsafe_attributes.properties"),
            'fileType' : 'properties://'
        },
        'bgdelete' : {
            'configFile' : os.path.join(config_file_path, "s3/s3backgrounddelete/config.yaml"),
            'oldSampleFile' : os.path.join(s3_tmp_dir, "config.yaml.sample.old"),
            'newSampleFile' : os.path.join(config_file_path, "s3/s3backgrounddelete/config.yaml.sample"),
            'unsafeAttributesFile' : os.path.join(config_file_path, "s3/s3backgrounddelete/s3backgrounddelete_unsafe_attributes.yaml"),
            'fileType' : 'yaml://'
        },
        'cluster' : {
            'configFile' : os.path.join(config_file_path, "s3/s3backgrounddelete/s3_cluster.yaml"),
            'oldSampleFile' : os.path.join(s3_tmp_dir, "s3_cluster.yaml.sample.old"),
            'newSampleFile' : os.path.join(config_file_path, "s3/s3backgrounddelete/s3_cluster.yaml.sample"),
            'unsafeAttributesFile' : os.path.join(config_file_path, "s3/s3backgrounddelete/s3_cluster_unsafe_attributes.yaml"),
            'fileType' : 'yaml://'
        }
    }
    for upgrade_item in g_upgrade_items:
        upgrade_config(g_upgrade_items[upgrade_item]['configFile'],
            g_upgrade_items[upgrade_item]['oldSampleFile'],
            g_upgrade_items[upgrade_item]['newSampleFile'],
            g_upgrade_items[upgrade_item]['unsafeAttributesFile'],
            g_upgrade_items[upgrade_item]['fileType'])