Skip to content

reflog/route53_register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

route53_register

Tiny Go CLI Program to register EC2 host in Route53

Build Status

usage

Usage of ./route53_register:
  -cname
        whether to create CNAME record instead of an A record. (will use public hostname instead of IP)
  -hostname string
        which name to use for the new entry
  -zonename string
        which zone to use for registering records
  -zoneId string
        route53 zone id which to use for registering records (instead of searching zone by name)
  -debug
        enable aws logging

use case

if you are using ECS and you have a service that's dynamically placed on some EC2 instance, you can add this command to your docker startup:

route53_register -hostname my_service -zonename myzone.internal