fernandocarletti / capistrano-aws

Integrates Capistrano with AWS EC2.
MIT License
16 stars 6 forks source link

Add mapping to Route53 zone #3

Open allaire opened 6 years ago

allaire commented 6 years ago

Hi, I think it would be interesting to add an integration with Route53 to map the server IP to a route53 record, we could have the domain name in the output logs when deploying, instead of only having the contact point / IP.

Ansible has a similar functionality in their ec2 script: https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.py

fernandocarletti commented 6 years ago

Showing the ip always bothered me a bit. In my use case, we do not have a hostname for each server in Route53. Ansible allow us to set a name for each inventory, so there we have a proper name being show, but I did not find a way to reproduce that in capistrano (we use the Name tag).

Feel free to do this implementation as an optional configuration. It would be great to have proper names in the logs.