The amazon and google providers don't include necessary datafiles in them.

They were previously included in the sdist via MANIFEST.in (see https://github.com/apache/airflow/pull/12196) and in the bdist via include_package_data from the top level setup.py

Both of these are currently missing.

I've put this against 2.0.0-beta1, it _could_ be changed separately as providers are separate releases.
dev/provider_packages/prepare_provider_packages.py
SECRETS_PATTERN,
    TRANSFERS_PATTERN,
    WRONG_TRANSFERS_PATTERN,
}
EXPECTED_SUFFIXES: Dict[EntityType, str] = {
    EntityType.Operators: "Operator",
    EntityType.Hooks: "Hook",
    EntityType.Sensors: "Sensor",
    EntityType.Secrets: "Backend",
    EntityType.Transfers: "Operator",
}
def get_source_airflow_folder() -> str:
    """
    Returns source directory for whole airflow (from the main airflow project).
    :return: the folder path
    """
    return os.path.abspath(SOURCE_DIR_PATH)
def get_source_providers_folder() -> str:
    """
    Returns source directory for providers (from the main airflow project).
    :return: the folder path
    """
    return os.path.join(get_source_airflow_folder(), "airflow", "providers")
def get_target_folder() -> str:
    """
    Returns target directory for providers (in the provider_packages folder)
    :return: the folder path
    """
    return os.path.abspath(os.path.join(dirname(__file__), os.pardir, os.pardir, "provider_packages"))
def get_target_providers_folder() -> str: