Unable to terminate "Virtual Private Cloud" - "You do not have permission to access the specified resource."

0

Hi,

Recently I am been charged in my AWS account for "Amazon Virtual Private Cloud VpcEndpoint". I have tried to terminate the associated services - Subnets, Network interfaces, Public Ip's etc.. But it's not allowing me to proceed and says user dont have permission to do the action. I have been trying with root user for my console but not working.

Its been charged every hour for those services which currently I am not using. Please terminate all the services which are chargeable on my AWS console at the earliest.

With Thanks, Vinoth

Enter image description here

Vinoth
질문됨 10달 전330회 조회
2개 답변
1

Hello.
Am I correct in recognizing that the error in the image occurred when you tried to remove the network interface?
Perhaps an Elastic IP is configured on the network interface.
First, please unassociate this Elastic IP address.
The Elastic IP should then be released.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#using-instance-addressing-eips-associating-different

If you can unassociate the Elastic IP, you should be able to delete the network interface.
If the above actions do not remove the resource, it is possible that another resource is using the network interface.
In such cases, the resource using the network interface must be identified and deleted.
The most common cases are tied to an NLB or used by a NAT Gateway.

profile picture
전문가
답변함 10달 전
  • Hi, I tried to disassociate the Elastic IP, But it errors out as "You dont have permission to access the specified resource". I logged in as root user.

  • The error occurs when that network interface is attached to some other resource. For example, is it attached to a NAT Gateway or NLB? In such cases, the NAT Gateway or NLB must be removed first.

0

You mention "VpcEndpoint" in your question. To me, this indicates that there is a VPC Private Endpoint for an AWS service in your VPC. You can't delete the ENI attached to that because it is owned by the service that the endpoint is there for.

But, you can delete the enpdoint - which will delete the ENI. To do this, go into the console, go to the VPC service and look at what is configured under "Endpoints".

profile pictureAWS
전문가
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠