0

I have created an instance running ubuntu os. Now I need to change the OS from ubuntu to cent OS. For that I need set the "deleteOn Termination" flag as false to attach it to the new instance.

I used the following command but it tells -> "Only one instance ID may be specified. (-h for usage)"

ec2-modify-instance-attribute --region device=vol-id:false

I am struck with this few hours. Can any one answer for this; How to resolve this issue?

Thanks for the reply in advance

2
  • Is there any reason you can't do this in the web interface?
    – Ladadadada
    Mar 13, 2013 at 9:15
  • The ec2-modify-instance-attribute command must have an instance ID specified. I don't see that in your example above. Mar 13, 2013 at 15:12

1 Answer 1

0

I am not sure how you can do this, but I can help you with the problem.

For this, first take the snapshot of the volume you want, and then simply create a new Volume out of it, and then attach it to the new instance.

Should work for your scenario.

2
  • Would you care to accept the answer please so that other people can also be helped with this.
    – Napster_X
    Mar 21, 2013 at 14:07
  • What I have done is stopped the instance and detached the EBS root volume and then created new instance and attached the volume. Finally I have terminated old instance. Mar 21, 2013 at 17:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .