如何修改aws EBS卷属性

2024-09-27 00:12:39 发布

您现在位置:Python中文网/ 问答频道 /正文

Am正在编写代码,以便在实例终止时将EBS卷设置为删除

我有以下代码:

v.modify_attribute('blockDeviceMapping', {'/dev/sda1': False})

我有以下代码:

v.modify_attribute('blockDeviceMapping', {'/dev/sda1': False})

但是我有错误

以下是我的错误:

botocore.exceptions.ClientError: An error occurred (InvalidParameterCombination) when calling the ModifyVolumeAttribute operation: No attributes specified.

Tags: 实例代码devanfalse错误attributeam

热门问题