Create Image from running instance will change the public IP address?












0















As far as I know, if you create an image from a running instance, it would by default reboot the instance. Do correct me if I am wrong on this.



For my situation, my free elastic ip are all used up and I need to do some heavy modification on the instance operating system. Before proceeding with those modifications, I would like to at least do a complete backup on everything. Which means I need to create an AMI and do snapshot on the EBS before proceeding. Problem is, I can't afford to lose the public and private IP address of that instance because it would take me more work to update all other softwares in different servers that would connect to it (unless of course if I mess it up and had to use the backup created AMI image after all).



So my questions are:




  1. If I just simply create an image from that instance that is still running without stopping it. It will reboot by default, but would it change it's public and private IP addresses? I noticed that a normal "reboot" when you right click the instance does not change those IP address. Is it the same kind of "reboot" when you create image without stopping the instance?

  2. Is it safer that I stop the instance first before creating an image or creating the image while it's running is safe enough? Consider data integrity.


Thank you










share|improve this question























  • By the way, you can select the no-reboot option when creating an image. From this documentation: "Amazon EC2 powers down the instance before creating the AMI to ensure that everything on the instance is stopped and in a consistent state during the creation process. If you're confident that your instance is in a consistent state appropriate for AMI creation, you can tell Amazon EC2 not to power down and reboot the instance. "

    – nareddyt
    Jan 2 at 16:17













  • Yeah. That I know. I’m more concern of those things that I asked on the IP address part. Thanks for your info.

    – AFwcxx
    Jan 2 at 16:22


















0















As far as I know, if you create an image from a running instance, it would by default reboot the instance. Do correct me if I am wrong on this.



For my situation, my free elastic ip are all used up and I need to do some heavy modification on the instance operating system. Before proceeding with those modifications, I would like to at least do a complete backup on everything. Which means I need to create an AMI and do snapshot on the EBS before proceeding. Problem is, I can't afford to lose the public and private IP address of that instance because it would take me more work to update all other softwares in different servers that would connect to it (unless of course if I mess it up and had to use the backup created AMI image after all).



So my questions are:




  1. If I just simply create an image from that instance that is still running without stopping it. It will reboot by default, but would it change it's public and private IP addresses? I noticed that a normal "reboot" when you right click the instance does not change those IP address. Is it the same kind of "reboot" when you create image without stopping the instance?

  2. Is it safer that I stop the instance first before creating an image or creating the image while it's running is safe enough? Consider data integrity.


Thank you










share|improve this question























  • By the way, you can select the no-reboot option when creating an image. From this documentation: "Amazon EC2 powers down the instance before creating the AMI to ensure that everything on the instance is stopped and in a consistent state during the creation process. If you're confident that your instance is in a consistent state appropriate for AMI creation, you can tell Amazon EC2 not to power down and reboot the instance. "

    – nareddyt
    Jan 2 at 16:17













  • Yeah. That I know. I’m more concern of those things that I asked on the IP address part. Thanks for your info.

    – AFwcxx
    Jan 2 at 16:22
















0












0








0








As far as I know, if you create an image from a running instance, it would by default reboot the instance. Do correct me if I am wrong on this.



For my situation, my free elastic ip are all used up and I need to do some heavy modification on the instance operating system. Before proceeding with those modifications, I would like to at least do a complete backup on everything. Which means I need to create an AMI and do snapshot on the EBS before proceeding. Problem is, I can't afford to lose the public and private IP address of that instance because it would take me more work to update all other softwares in different servers that would connect to it (unless of course if I mess it up and had to use the backup created AMI image after all).



So my questions are:




  1. If I just simply create an image from that instance that is still running without stopping it. It will reboot by default, but would it change it's public and private IP addresses? I noticed that a normal "reboot" when you right click the instance does not change those IP address. Is it the same kind of "reboot" when you create image without stopping the instance?

  2. Is it safer that I stop the instance first before creating an image or creating the image while it's running is safe enough? Consider data integrity.


Thank you










share|improve this question














As far as I know, if you create an image from a running instance, it would by default reboot the instance. Do correct me if I am wrong on this.



For my situation, my free elastic ip are all used up and I need to do some heavy modification on the instance operating system. Before proceeding with those modifications, I would like to at least do a complete backup on everything. Which means I need to create an AMI and do snapshot on the EBS before proceeding. Problem is, I can't afford to lose the public and private IP address of that instance because it would take me more work to update all other softwares in different servers that would connect to it (unless of course if I mess it up and had to use the backup created AMI image after all).



So my questions are:




  1. If I just simply create an image from that instance that is still running without stopping it. It will reboot by default, but would it change it's public and private IP addresses? I noticed that a normal "reboot" when you right click the instance does not change those IP address. Is it the same kind of "reboot" when you create image without stopping the instance?

  2. Is it safer that I stop the instance first before creating an image or creating the image while it's running is safe enough? Consider data integrity.


Thank you







amazon-ec2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 16:13









AFwcxxAFwcxx

306214




306214













  • By the way, you can select the no-reboot option when creating an image. From this documentation: "Amazon EC2 powers down the instance before creating the AMI to ensure that everything on the instance is stopped and in a consistent state during the creation process. If you're confident that your instance is in a consistent state appropriate for AMI creation, you can tell Amazon EC2 not to power down and reboot the instance. "

    – nareddyt
    Jan 2 at 16:17













  • Yeah. That I know. I’m more concern of those things that I asked on the IP address part. Thanks for your info.

    – AFwcxx
    Jan 2 at 16:22





















  • By the way, you can select the no-reboot option when creating an image. From this documentation: "Amazon EC2 powers down the instance before creating the AMI to ensure that everything on the instance is stopped and in a consistent state during the creation process. If you're confident that your instance is in a consistent state appropriate for AMI creation, you can tell Amazon EC2 not to power down and reboot the instance. "

    – nareddyt
    Jan 2 at 16:17













  • Yeah. That I know. I’m more concern of those things that I asked on the IP address part. Thanks for your info.

    – AFwcxx
    Jan 2 at 16:22



















By the way, you can select the no-reboot option when creating an image. From this documentation: "Amazon EC2 powers down the instance before creating the AMI to ensure that everything on the instance is stopped and in a consistent state during the creation process. If you're confident that your instance is in a consistent state appropriate for AMI creation, you can tell Amazon EC2 not to power down and reboot the instance. "

– nareddyt
Jan 2 at 16:17







By the way, you can select the no-reboot option when creating an image. From this documentation: "Amazon EC2 powers down the instance before creating the AMI to ensure that everything on the instance is stopped and in a consistent state during the creation process. If you're confident that your instance is in a consistent state appropriate for AMI creation, you can tell Amazon EC2 not to power down and reboot the instance. "

– nareddyt
Jan 2 at 16:17















Yeah. That I know. I’m more concern of those things that I asked on the IP address part. Thanks for your info.

– AFwcxx
Jan 2 at 16:22







Yeah. That I know. I’m more concern of those things that I asked on the IP address part. Thanks for your info.

– AFwcxx
Jan 2 at 16:22














1 Answer
1






active

oldest

votes


















0














The default reboot during AMI creation will just do a normal reboot. It will not change IP addresses.



The Private IP address will never change.



The Public IP address might change if the instance is stopped.



Best practice is to either use an Elastic IP address (free if attached to a running instance, and you can request more if you need them) or use a DNS Name that resolves to an IP address. That way, if the IP address changes, simple update the DNS entry without needing to change any references.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54009599%2fcreate-image-from-running-instance-will-change-the-public-ip-address%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The default reboot during AMI creation will just do a normal reboot. It will not change IP addresses.



    The Private IP address will never change.



    The Public IP address might change if the instance is stopped.



    Best practice is to either use an Elastic IP address (free if attached to a running instance, and you can request more if you need them) or use a DNS Name that resolves to an IP address. That way, if the IP address changes, simple update the DNS entry without needing to change any references.






    share|improve this answer




























      0














      The default reboot during AMI creation will just do a normal reboot. It will not change IP addresses.



      The Private IP address will never change.



      The Public IP address might change if the instance is stopped.



      Best practice is to either use an Elastic IP address (free if attached to a running instance, and you can request more if you need them) or use a DNS Name that resolves to an IP address. That way, if the IP address changes, simple update the DNS entry without needing to change any references.






      share|improve this answer


























        0












        0








        0







        The default reboot during AMI creation will just do a normal reboot. It will not change IP addresses.



        The Private IP address will never change.



        The Public IP address might change if the instance is stopped.



        Best practice is to either use an Elastic IP address (free if attached to a running instance, and you can request more if you need them) or use a DNS Name that resolves to an IP address. That way, if the IP address changes, simple update the DNS entry without needing to change any references.






        share|improve this answer













        The default reboot during AMI creation will just do a normal reboot. It will not change IP addresses.



        The Private IP address will never change.



        The Public IP address might change if the instance is stopped.



        Best practice is to either use an Elastic IP address (free if attached to a running instance, and you can request more if you need them) or use a DNS Name that resolves to an IP address. That way, if the IP address changes, simple update the DNS entry without needing to change any references.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 23:58









        John RotensteinJohn Rotenstein

        76.9k785137




        76.9k785137
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54009599%2fcreate-image-from-running-instance-will-change-the-public-ip-address%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            Npm cannot find a required file even through it is in the searched directory