How do I create DNS entries for EC2 instances created by Auto Scaling?
        Posted  
        
            by 
                Evan
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Evan
        
        
        
        Published on 2014-05-30T14:18:18Z
        Indexed on 
            2014/05/30
            15:31 UTC
        
        
        Read the original article
        Hit count: 321
        
I'm looking into using auto scaling groups for a tier of webservers that would be fronted by an ELB.  One of the things I'm having a hard time with is how to give each new instance the proper DNS name.  For example, I'd like webservers to have names like frontend-web-XXX.prod.example.com so their names would appear correct in logs and just ease of organization.  I have two other tiers I'd ultimately like to make autoscaled and I'd like them to have names like api-web-XXX.prod.example.com as well.  I have some experience with cloudformation templates and have spun up individual instances with associated Route53 records but I don't see any indication of how this can be done within an autoscaled group.
© Server Fault or respective owner