Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to create an AMI from an EBS backed windows instance without disruption of service? When i click on the "create instance" selection from the instance actions menu, will it pause my running instance?

share|improve this question
    
Do you want to create an AMI or a new EC2 instance, or both ? It's not clear to me from your question. –  gareth_bowles Jul 28 '10 at 17:26

2 Answers 2

You can create an image without shutting down your server by using the "--no-reboot" option with the ec2-create-image command line tool.

You can do the same thing using the AWS SDK for .NET by doing something similar to:

var ec2Client = new AmazonEC2Client(awsAccessKeyId, awsSecretAccessKey);

var createImageRequest = new CreateImageRequest
{
    InstanceId = "<YOUR INSTANCE ID>",
    NoReboot = true
};


var createImageResponse = ec2Client.CreateImage(createImageRequest);

Bear in mind that when you image an instance using the --no-reboot option, it is imaged without cleanly shutting down the image. The next time you start your server based on this image, the Shutdown Event Tracker will pop up wondering why you lost power.

share|improve this answer

While the Windows instance is being bundled, it will be offline

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.