1
我已经使用AWS的AWS API一段时间了,但不知何故我找不到如何删除使用CreateImage请求创建的快照。AWS Java删除使用CreateImage创建的快照
此请求将为您提供包含图像ID的图像。 当你想删除图像,你可以取消注册它给这个ID。 但我找不到如何删除该图像正在使用的快照。
我在这里错过了什么吗?
由于提前,
Giriel
PS:一些代码来说明我的意思:
final CreateImageResult createAMIResult = AWS.ec2.createImage(new CreateImageRequest().withInstanceId(instanceID).withName(amiName).withNoReboot(noReboot));
final String imageId = createAMIResult.getImageId();
//After a while I want to remove it again
AWS.ec2.deregisterImage(new DeregisterImageRequest(imageId));
//TODO: How to remove the snapshot??