I have an AWS instance running behind an elastic IP. The instance also has a private IP address in my VPC. I will be re-assigning the elastic IP to another instance and am tryin
If you have an existing instance with the private IP you want (EXAMPLE: 10.0.0.101). You should take an image (AMI) and then terminate that instance. Because it is in a VPC, just stopping it won't free the private IP.
Once you have a good image, terminate it. That would free up its Private IP Address. Thus you would have (10.0.0.101) available
Then assign a secondary private IP to your new instance that you want and specify the private IP to be the one you want it to be (10.0.0.101)
To assign a secondary private IP to an existing instance
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the navigation pane, choose Network Interfaces, and then select the network interface attached to the instance.
Choose Actions, and then select Manage Private IP Addresses.
In the Manage Private IP Addresses dialog box, do the following:
Choose Assign new IP.
Enter a specific IP address that's within the subnet range for the instance, or leave the field blank and we'll select an IP address for you.
(Optional) Select Allow reassignment to allow the secondary private IP address to be reassigned if it is already assigned to another network interface.
Choose Yes, Update, and then choose Close.
Note that alternatively, you can assign a secondary private IP address to an instance. Choose Instances in the navigation pane, select the instance, choose Actions, select Networking, and then select Manage Private IP Addresses. You can configure the same information in the dialog as you did in the steps above.