Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add hostname options concatenation in aws_ec2 #58052
Adds hostname options concatenation in the aws_ec2 inventory plugin.
This change adds support for list of options, that will be concatenated with an underscore to create the inventory name.
hostnames: - [ "tag:Name", private-ip-address ] #=> myinstance_10.10.10.10
Amazon Auto Scaling Groups allow to have a group of one or multiple instances, that scales depending of policies.
In order to still use the tag:Name, an unique identifier like an IP or an Instance ID has to be appended.