Automate prefix list updates with IPAM
A managed prefix list is a set of CIDR blocks that you can reference in security group rules and route tables instead of specifying individual IP addresses. For example, instead of creating separate security group rules for 10.1.0.0/16, 10.2.0.0/16, and 10.3.0.0/16, you can create one prefix list containing all three CIDRs and reference it in a single rule.
There are two types:
-
Customer-managed prefix lists: IP ranges you define and manage
-
Amazon-managed prefix lists: IP ranges for Amazon services (like S3 or CloudFront)
This IPAM feature automates the management of customer-managed prefix lists by keeping your CIDR entries synchronized with your network changes.
The problem this solves
Without automation, network teams spend significant time manually updating prefix lists when infrastructure changes and maintaining consistent prefix lists across environments and Regions.
IPAM solves this by letting you create rules that automatically populate prefix lists. You can use two approaches: reference CIDRs from your IPAM pools, or create rules based on your actual Amazon resources—such as ' include all VPCs tagged with env=prod', 'include all subnets in us-east-1', or 'include all Elastic IP addresses owned by account 123456789'. When you add or remove these resources, IPAM automatically updates the prefix list with their CIDRs.
How it works
You create rules that tell IPAM which IP addresses to include in a prefix list. For example, "include all VPC CIDRs tagged with env=prod". When you add or remove production VPCs, IPAM automatically updates the prefix list.
When to use it
-
Security groups: Create a rule "include all VPCs tagged env=prod" so when you add new production VPCs, they're automatically allowed in your security group rules
-
Multi-region: Deploy the same IPAM rules in multiple regions to keep identical prefix lists without manually copying CIDR entries
-
Dynamic infrastructure: When you create/delete VPCs or subnets, their CIDRs are automatically added/removed from prefix lists without manual updates
Prerequisites
Before you begin, ensure you have:
-
An IPAM with Advanced Tier enabled
-
A customer-managed prefix list (or create one during setup)
-
IAM permissions for IPAM and EC2 prefix list operations
Setup steps
Step 1: Create an IPAM prefix list resolver
Define which CIDRs to include in your prefix list by creating an IPAM prefix list resolver.
Step 2: Create a resolver target to connect to a prefix list
Link your resolver to an existing prefix list by creating a resolver target. Use the resolver ID returned from Step 1.
IPAM now automatically updates your prefix list based on your rules. The prefix list will be populated with CIDRs matching your criteria.
Step 3: Monitor versions and synchronization
As a result of creating a prefix list resolver and target, the prefix list resolver generates CIDR versions based on your rules and then the target syncs those CIDRs from the resolver to a specific managed prefix list. Each version is a snapshot of what CIDRs matched your rules at that moment in time. The version number increments every time the CIDR list changes due to infrastructure changes.
Version example:
Initial State (Version 1)
Production environment:
vpc-prod-web (10.1.0.0/16) - tagged env=prod
vpc-prod-db (10.2.0.0/16) - tagged env=prod
Resolver rule: Include all VPCs tagged env=prod
Version 1 CIDRs: 10.1.0.0/16, 10.2.0.0/16
Infrastructure Change (Version 2)
New VPC added:
vpc-prod-api (10.3.0.0/16) - tagged env=prod
IPAM automatically detects the change and creates a new version.
Version 2 CIDRs: 10.1.0.0/16, 10.2.0.0/16, 10.3.0.0/16
This section explains how you can monitor version creation with the Amazon console or Amazon CLI and synchronization success with the Amazon CLI.
Also, we encourage you to set CloudWatch alarms on failure metrics as you may need to reassess and adjust CIDR selection rules to stay within the limits for version and prefix list size. For a list of CloudWatch metrics related to IPAM prefix lists, see IPAM prefix list resolver metrics.
Step 4: (Optional) Enable and disable IPAM prefix list sync
If a managed prefix list has been configured as an IPAM prefix list target and you want to make changes to the prefix list without needing permission to access the IPAM prefix list resolver target, you can modify the managed prefix list