Potential bug in Virtualmin scheduled backups (not using/noticing AWS cli)

SYSTEM INFORMATION
OS type and version AlmaLinux 9.6
Webmin version 2.303
Virtualmin version 7.30.8 (GPL)

I believe there is a bug in Virtualmin: I have a Virtualmin server with latest AlmaLinux that has scheduled daily backup with S3 bucket destination. It keeps saying:
" Warning! We recommend installing the official AWS command line interface. Click here to have it installed automatically."

Official AWS command line interface is installed but somehow Virtualmin doesn’t notice it. By clicking the given install_awscli.cgi link I get the following:

"Installing the AWS CLI package ..

Installing package(s) with command /bin/dnf -y install awscli ..

Last metadata expiration check: 2:56:18 ago on Tue Jun 3 04:35:40 2025. Package awscli2-2.15.31-3.el9.noarch is already installed. Dependencies resolved. Nothing to do. Complete!

.. install complete

.. installation failed!"

After this, nothing changes. AWS command line interface works 100% when used manually but Virtualmin still doesn’t notice it nor use it. And all the backups take like 10 hours to complete and still some of the backups keep failing. I believe this is about Virtualmin not noticing that the AWS command line tool is installed and therefore not using it.

This issue was resolved by username iliaross @github:
Try running whereis aws and enter the full command path in “System Settings ⇾ Virtualmin Virtual Servers ⇾ Configuration: Backup and Restore” under the “Full path to aws command for S3 operations” option.