Root Cause
In the agent package, the platform validator cannot successfully detect the Amazon Linux 2.
Workaround
- Add an empty file /tmp/ignore_agent_installer_check to skip the platform validation.
$ touch /tmp/ignore_agent_installer_check
- Reinstall the agent again.