Metricbeat not able to recognise AWS modules

There is a similar one with a suggestion available: Metricbeat is getting failed when we enable aws metricbeat moulde - #3 by Kaiyan_Sheng