aws ec2 - modify EBS settings in existing AMI
How can I change the "DeleteOnTermination" flag in the EBS settings of existing AMI? I think I need to use "aws ec2 modify-image-attribute" for that, but not sure of the exact syntax.
EDIT: As a workaround for now, I did the following:
- Launch an instance from the existing AMI
- Modify the EBS settings in the launch instance wizard
- Once instance launched, created an AMI from that instance
That works, but I believe there is much easier way to do it using the modify CLI.
Comments
Post a Comment