I'm trying to automate my dns in my ec2 VPC. What I want is:
- VPC boots up
- VPC gets instance info from
- VPC looks up Name tag for instance
- VPC sets hostname to this tag value, and puts that hostname into Route53 for dns resolution
My problem is with #3 on private instances. ec2-describe-tags hits ec2.amazonaws.com, and this fails when my machine is private.
Is there any way for a private ec2 instance (as in, has no public ip address) to get the name value so I can have this configure things?