I have recently built Metricbeat from source code after following the developer guides. I noticed it builds all of the x-pack modules, but at the end of the day the image doesnt contain these module directories.
Ultimately, I need to make just a few line updates to the AWS module for the normal metricbeat:7.14.0 image to work in my desired destination environment. I thought I could build this from source after making those updates to the x-pack/metricbeat/aws code.
I pulled the 7.14.0 code, updated the aws.go code, and everything built fine ... but at the end of the day, there was no module, module.d directories to configure with YAMLs.