We gather most of our host inventory using the aws_ec2 inventory plugin, and from this each host’s private IP address is used as the host identifier. Is there a way we can also gather and use other unique identifiers to refer to hosts as an alternative?
Each of our hosts has an assigned EC2 “Name” tag that uniquely ids the host so it’d be handy to be able to use this in some situations, though as we’ve already been using IPs for a long time I’d prefer to just continue to keep this as the primary means of referencing hosts.
Is the above feasible or can hosts only have one ID?
Thanks,
Guy