Re:Terraform 0.15 General Availability
by apple4ever on Thursday April 15, 2021 @12:43AM
(#26816270)
How do you ensure you have say 2 web servers created and connected to a load balancer? Is that part of your custom module?
[ Parent
| on HN ]
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.