“快照”列是什么意思?为什么它全都是相同的字符串?

0

【以下的问题经过翻译处理】 我想知道EBS卷屏幕上的“Snapshot”列究竟显示了什么内容。在我的环境中,我看到所有卷ID都显示同样的字符串“snap-0df8908c34e3....”。EBS卷列表视图

profile picture
专家
已提问 5 个月前101 查看次数
1 回答
0

【以下的回答经过翻译处理】 我找到了另一个文档 https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-volumes.html。但是缺少使用AWS CLI的语法。

describe-volumes.html 中提到了以下内容:

SnapshotId -> (string)
如果有的话,表示卷是从哪个快照创建而来。

在 AWS CloudShell 中,使用以下命令:

$ aws ec2 describe-volumes | cat
{
    "Volumes": [
        {
...snip...
            "SnapshotId": "snap-0df8908c34e3b909a",
            "VolumeId": "vol-0810e...",
...snip...
        },
        {
...snip...
            "SnapshotId": "snap-0df8908c34e3b909a",
            "VolumeId": "vol-03fd2...",
...snip...
        },
        {
...snip...
            "SnapshotId": "snap-0df8908c34e3b909a",
            "VolumeId": "vol-0b8b5...",
...snip...
        }
    ]
}

以及

$ aws ec2 describe-snapshots --snapshot-ids snap-0df8908c34e3b909a
{
    "Snapshots": [
        {
            "Description": "Debian 11 (20220503-998)",
            "Encrypted": false,
            "OwnerId": "136693071363",
            "Progress": "100%",
            "SnapshotId": "snap-0df8908c34e3b909a",
            "StartTime": "2022-05-03T20:14:08.235000+00:00",
            "State": "completed",
            "VolumeId": "vol-ffffffff",
            "VolumeSize": 8,
            "OwnerAlias": "amazon",
            "StorageTier": "standard"
        }
    ]
}

因此我可以确定 snap-0df8908c34e3b909a 是一个官方Debian快照。

问题已经解决。

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则