Unable to delete Elastic IP address as root user

0

I am trying to delete an Elastic IP address as root user and I get an error message 'Elastic IP address XX.XX.XX.XX You do not have permission to access the specified resource.

The elastic IP address owner number matches with my root account  I am logged in as the root user. Please offer advice on how to best resolve this

sidpat
asked 14 days ago64 views
3 Answers
0

Hello.

The Elastic IP address may be associated with some AWS resource.
So please try deleting that AWS resource first.
https://repost.aws/knowledge-center/ec2-troubleshoot-elastic-ip-addresses

When releasing an Elastic IP address from my account, I'm getting the error: "Elastic IP address could not be released. You do not have permission to access the specified resource."
This error message occurs when you try to release or disassociate an Elastic IP address that's used by an AWS Managed Service. Examples of AWS Managed Services are Elastic Load Balancing (ELB), NAT Gateway, Amazon Elastic File System (Amazon EFS), and so on. To release an Elastic IP address associated with an AWS Managed Service, delete the resource that's using it. For example, if you have a NAT Gateway with an attached Elastic IP address, then you must first delete the NAT Gateway before you can release the Elastic IP address.

profile picture
EXPERT
answered 14 days ago
profile picture
EXPERT
reviewed 14 days ago
  • its associated with an internet gateway and I am unable to delete it as well with the same permission error.

    I don't think Elastic IP addresses are attached to internet gateways. Maybe it's attached to the ENI rather than the internet gateway? If you look at the relevant ENI, you may be able to see the AWS resources that the ENI is linked to in the description.

    It pointed me to delete VPC endpoints, when I tried to delete it I get this message and no further information

    It could be a VPC endpoint created by some AWS resource. In that case, the VPC endpoint will not disappear unless you delete the relevant AWS resource first.

0

its associated with an internet gateway and I am unable to delete it as well with the same permission error. It pointed me to delete VPC endpoints, when I tried to delete it I get this message and no further information

There was an error deleting your endpoints Details

sidpat
answered 14 days ago
0

Create a temporary user with view permission for ELB, EC2, Elastic IP, etc. Then ask the person you want to take a look into the account. Then they might get a better perspective. Because the solution provided by the expert is ample to solve the error that you are getting. There must be something that is missing out which is causing your Elastic IP stay put

profile picture
halahal
answered 14 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions