How I can get value of second IP address from Terraform module EC2.
Module- https://github.com/cloudposse/terraform-aws-ec2-instance
I've created instance EC2 with parameter additional_ips_count = 1
. In this situation instance has create with two network interface and I need get value public IP address of second network interface.
Normally the module allows me to extract the value of public ip from the value of public_ip
. For example, if I create a module called server, I can get the value of the public IP address from the first network interface using the value module.server.public_ip
but how to do it for the second network created using a variable additional_ips_count = 1
.