Does anywhereusb work with aws ec2 instance

Will an anywhereusb device with a dongle installed, which is set up in a network, be supported from an aws ec2 server?

Yes, as long as it is running one of the supported OS’s. See this link:
https://hub.digi.com/support/products/infrastructure-management/digi-anywhereusb-8-plus/?path=/support/asset/anywhere-usb-plus-os-specific-drivers/

The drop down box has both Linux and MS Windows.
For each one there are release notes which states the specific versions of these OS that are supported.