Code to build foundation AMIs