AWS Cant assign Elastic IP to Network Interface

Monzingo picture Monzingo · Sep 30, 2016 · Viewed 10.7k times · Source

I have a website that I am hosting on AWS. The ec2 instance is stored in a VPC. The instance is attached to an ELB and Network Interface. What I am trying to do is assign an Elastic IP to the Network interface so that my website has a static IP, while staying on the ELB. The issue is that when I try and assign the elastic IP to the Network Interface, I get the error

"An error occurred while attempting to associate the address You do not have permission to access the specified resource."

I am the owner of the account. Is what i am trying to do possible? I must have a static IP because the firewall we have goes by IP Address. Do i need to take it off of the load balancer?

Answer

Anush Arvind picture Anush Arvind · Sep 22, 2017

Check if the network interface already has an EIP association. When you try to associate an EIP to a network interface with an association already, the error "You do not have permission to access the specified resource." is thrown.