title: Is it possible to replace the AMI on an EC2 instance with a different AMI?
body: <p>I'm running an EC2 AMI instance with LAMP stack and Laravel.
  I need to update my LAMP stack version as well as the Laravel version.
  I was thinking of running a new EC2 instance as my sandbox for the update process and install a brand new LAMP stack + Laravel and then make changes on my Laravel code base to make all my code work with the new updates.
  Can I then export the AMI from this new instance and replace my already running EC2's AMI with the new one. This way I don't need to ask my client and their clients to change anything such as IP address.
  I have to mention that I'm new to all these so please educate me on the the best approach to this.
  Thank you!</p>