(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "fs-extra", "path"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const fs_extra_1 = require("fs-extra");
    const path_1 = require("path");
    /**
     * @hidden
     */
    const ec2info = require('../ec2info/www/instances.json');
    /**
     * @hidden
     */
    const results = ec2info.map(i => {
        return {
            arch: i.arch,
            instance_type: i.instance_type,
            linux_virtualization_types: i.linux_virtualization_types
        };
    });
    fs_extra_1.default
        .writeJson(path_1.default.resolve(__dirname, '..', 'ec2info.json'), results)
        .then(() => {
        console.log('Finished.');
    })
        .catch(console.error);
});
//# sourceMappingURL=buildEC2Data.js.map