title: How to display public ip of ec2_instance after terraform creation
body: <p>I would like to display the public_ip of aws_instance created by terraform after terraform execution.</p>
  
  <p>However, only the global IP of the first server appears.</p>
  
  <p>My source code is as follows.</p>
  
  <pre><code>resource "aws_instance" "main" {
    count         = "3"
    ...
  }
  
  
  output "ec2_global_ips" {
    value = "${aws_instance.main.*.public_ip}"
  }
  </code></pre>
  
  <p>Is something wrong grammar?
  Let me know if you have to know how to display array values as output in terraform.</p>