How to create Android EC2 AMI from scratch? I've tested all Genymotion on-Demand AMIs, but they doesn't work for me, since some apps are not compatible with 64-bit platform.

I'd like to create my own x86 (32-bit) AMI where I can install The Open GApps, then install some other apps. What would be a good starting point to do that?
To save compile times of the entire Android OS (see: Requirements and Building of Android OS) and your custom ROM builds from hours, it is possible to use Android Open Source Project AMI as a starting point for building the entire AOSP build environment which is pre-configured and completely synced with the repo on this app and ready to go.

Once the instance is ready, run these commands to compile the Android OS:

$ cd aosp &amp;&amp; . build/envsetup.sh
$ lunch aosp_arm-BUILDTYPE
$ make -j4


The BUILDTYPE is one of the following:


user: limited access; suited for production,
userdebug: like "user", but with root access,
eng: development configuration with additional debugging tools.


See: Preparing to build.

The solution above eliminates the need to host a build environment on the local machine, or require the Linux OS.