If you have an existing instance with the desired IP address (EXAMPLE: 10.0.0.101). You must take an image (AMI) and then complete this instance. Since it is in the VPC, just stopping it, it will not release the private IP.
Once you have a good image, complete it. This will free up his private IP address. This way you will have (10.0.0.101) available
Then assign the secondary private IP your new instance that you want and specify the private IP as the one you want (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, select Network Interfaces, and then select the network interface attached to the instance.
Select "Actions" and then "Manage Private IP Addresses".
In the Manage Private IP Addresses dialog box, do the following:
Select Assign New IP Address.
Enter a specific IP address within the subnet range for the instance or leave the field blank and we will select the IP address for you.
(Optional) Select "Allow reassignment" to allow reassignment of the secondary private IP address if it is already assigned to a different network interface.
Select Yes, Refresh, and then Close.
Note that as an alternative, you can assign a secondary private IP address to the instance. Select "Instances" in the navigation pane, select an instance, select "Actions", select "Network", and then "Manage Private IP Addresses". You can configure the same information in the dialog box as in the steps above.
greg_diesel
source share