【问题标题】:How get just images IDs with Boto3 or list one by one images?如何使用 Boto3 获取图像 ID 或一张一张地列出图像?
【发布时间】:2018-03-05 20:45:36
【问题描述】:

我的帐户中有 400 多张图片,并且

client = boto3.client('ec2', region)
images = client.describe_images()

工作时间过长,超过 10 分钟。 如何在没有大量数据的情况下一张一张地获取列表图像的 ID?

【问题讨论】:

    标签: amazon-ec2 boto3


    【解决方案1】:

    一种架构模式是在上传对象时将对象的元数据存储在 DynamoDB 等 noSQL 数据库中,然后只需一个查询即可返回有关 S3 对象的所有信息。

    Here is an AWS blog post about it

    描述过程的图像。

    Here is a stackoverflow question, asking the same thing with other considerations.

    【讨论】:

      猜你喜欢
      • 2013-09-04
      • 2020-06-24
      • 2013-04-04
      • 1970-01-01
      • 2016-11-23
      • 2011-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多