i am trying to launch instance on aws using pkgcloud so for that image option is must, so i used bellow code to get list of images.
aws = pkgcloud.compute.createClient({
provider:'amazon',
key:'',
keyId:''
});
aws.getImages(function (err, images) {
console.log(images);
});
but above API returns empty array. so how do i get list of all public images available on aws?
any suggestion ?
I had the same problem and could not find any answer. So I stopped using pkgcloud and started with aws-sdk instead which is directly provided by Amazon. It has much better documentation and works like a charm.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.