Getting the internal IP of an instance in an auto-scaling group

Viewed 2725

I'm using CloudFormation to bring up a single instance in an autoscaling group (MaxSize: 1)

I would like to know how to access the internal IP of that instance so I can assign it a friendly name with Route 53 in the same template.

If it were just a AWS::EC2::Instance it would be easy but it is defined as an autoscaling group so I don't have access to the "PrivateIP" attribute

3 Answers

I'm facing the same issue, dont think its possible if your instance goes down and a new one comes up as it should using cloudfomration, You would have to run cloudformation update again as the private Ip would've changed

Related