Cannot release/deallocate CIDRs

0

Hello and merry Christmas everyone. I'm actually stuck with a problem - I have an IPAM pool I want to remove but I cannot release allocated CIDRs because the vpc-%resource_name% doesn't exists anymore.

How can I solve that problem? When I'm trying to 'Ignore and release CIDR' it's show me 'Error ignoring %cidr_here%. InvalidResourceCidr.NotFound: The specified resource ID and CIDR does not exist.' Deallocating just constantly show 'Error deallocating.'

Thanks.

asked 2 years ago671 views
1 Answer
1
Accepted Answer

You might be missing the service linked role: https://docs.aws.amazon.com/vpc/latest/ipam/choose-single-user-or-orgs-ipam.html

You can enable it by using the following AWS CLI command: aws iam create-service-linked-role --aws-service-name ipam.amazonaws.com

Kudos to Drew for the answer. ;-)

profile pictureAWS
EXPERT
answered 2 years ago
  • Thank you, Brettski, for the help. It works and finally pool deleted successfully.

  • I have a situation when after account removal from organization: IPAM pool ID still show (Allocations tab) given VPC (Resource ID) with attached deleted account (owner ID) - service linked role exist at delegated IPAM account.

  • I have the same issue as sebp. Can anyone advise?

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