如何使用 python 更改现有的 aws 快照标签名称?

How to change exiting aws snapshot tag name using python?

我正在尝试更改现有的 AWS EBS 快照名称,但似乎没有可用的方法来更改标签名称,有人可以帮我解决这个问题吗?

谢谢

您可以调用create_tags(),指定EBS快照的ID:

response = client.create_tags(
    Resources=['snapshot-1234'],
    Tags=[
        {
            'Key': 'Name',
            'Value': 'name-you-want-to-store'
        },
    ]
)