'AWS EC2 instance upgade - IP changes?

I'm thinking of upgrading my instance type in my AWS EC2. Will the IP change? If so, how do I retain the ip?

P.S I'm referring to the public IP



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source