How can you use an elastic IP  to a vpc so that when shut down it doesnt lose its ip address?  Need a fixed ip that will remain constant eip.
I also have the EC2 instance in a VPC.
Eric DonaldsonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bbaoIT ConsultantCommented:
two official, must-read docs about Elastic IP.

Elastic IP Addresses

Assign an Elastic IP Address to Your Instance
Narender GakkaAWS / DevOps / Cloud ConsultantCommented:
there are 2 EC2 networks in AWS

1) EC2-Classic - If your EC2 instance is in EC2 Classic, the Elastic IP addresses will be released/disassociated from the instance once it is stopped

2) VPC - when the EC2 instance is launched in VPC, the elastic IP addresses will still be assigned to the network interface of that instance and it will be persistent upon the server restarts.

So if your requirement is to keep the IP address intact, you can
1) allocate a NEW Elastic IP address
2) Launch your Instance Inside a VPC, and assign the elastic IP address to the instance.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.