I am trying to fetch all instance types for the EC2 from EC2 SDK JSON
const instanceEnums = require('aws-sdk/apis/ec2-2016-11-15.normal.json');
function getAllTypes(property) {
return instanceEnums.shapes[property].enum;
}
getAllTypes('InstanceType')
But I get an error :
cannot find module aws-sdk/apis/ec2-2016-11-15.normal.json
I realized, the installed SDK/module does not include the .normal.json file.
Any body knows how to access the files from the apis folder?