AWS - Use Keyed Groups
Populate groups within a dynamic inventory of hosts deployed on AWS using keyed groups.
We'll cover the following...
Limitation of groups
A limitation of the groups is that new hosts that don’t match the conditions are not accounted for. If a new EC2 instance is deployed with a Linux operating system and the Name
tag doesn’t match it won’t be added to the correct group. Using name matching is a fairly fragile and complex solution, especially if there isn’t a naming standard.
Keyed groups
Keyed groups
offer another way to define and populate groups within a dynamic inventory. Instead of specifying the ...