Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
apple4ever
· 5y ago · 0 comments
How do you ensure you have say 2 web servers created and connected to a load balancer? Is that part of your custom module?
Comments
[–]
mr_C
5y ago
Using ec2_instance_info to check if the instance exists filtering by name (eg: selectattr('tags.Name', 'defined') | selectattr('tags.Name', 'equalto', server_name) ) and then standard ec2_instance module, same for lb.