To create a new address object mapping
Click New Mapping.
Select an existing Address Group to which you want to add the address groups representing any matched EC2 Instances.
Only custom address groups are shown in the selection control. If you have added a custom tag to an address group, you can use this custom tag to add a new condition to the mapping.
Click New Condition .
The Mapping Condition options are displayed.
Enter the Key and Value for the selected Property.
Enter the Value that you want to match against, such as true.
Fill in the displayed fields as needed.
Review the whole mapping condition you are about to create.
Any EC2 Instance in the regions of interest that match our specified conditions (in this example, having a custom tag of AccountsServer = true and of type t2.micro) will have address objects created for each of their IP addresses. Those address objects are added to an address group, representing the EC2 Instance as a whole and that address group is added to the address group targeted in the mapping. In this example, that is the address group called AccountsDeptServers.
Edit or delete the conditions if required.
Click the Edit or Delete icon in the Manage column of the condition.