【问题标题】:how to get list of public images of aws using pkgcloud?如何使用 pkgcloud 获取 aws 的公共图像列表?
【发布时间】:2015-05-13 21:58:19
【问题描述】:

我正在尝试使用 pkgcloud 在 aws 上启动实例,因此该图像选项是必须的,所以我使用下面的代码来获取图像列表。

aws = pkgcloud.compute.createClient({
        provider:'amazon',
        key:'',
        keyId:''
    });
aws.getImages(function (err, images) { 
        console.log(images);
    });

但上面的 API 返回空数组。那么如何获取 AWS 上可用的所有公共图像的列表?

有什么建议吗?

【问题讨论】:

    标签: node.js amazon-web-services pkgcloud


    【解决方案1】:

    我遇到了同样的问题,找不到任何答案。所以我停止使用 pkgcloud 并开始使用亚马逊直接提供的 aws-sdk。它有更好的文档,并且像魅力一样工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多