title: Terraform get ip address of api gatway
body: <p>I'm trying to get the IP address of my API gateway with terraform. I can get the URL with &quot;aws_api_gateway_deployment.api.invoke_url&quot; but not the IP address which I need for my security group. I want to restrict the traffic, so my ec2 instance will only talk to my api gatway. Therefore I need the IP address to specify my ingress/egress rules.</p>