Skip to main content

EC2 Namer - AWS EC2 host naming tool. Modifies hostname and public DNS routes based on EC2 tags.

Project description


Startup script - Modifies tags, hostname and public DNS routes based on EC2 some tags

Tag your ec2 instance with the following :

  • ‘group’: ‘compute’ / ‘webserver’
  • ‘number’: ‘0001’
  • ‘zone’: ‘’
  • ‘environment’: ‘dev’ / ‘prod’

If another machine is found with same tags, the number tag will be incremented (or updated with non existing one at least). You can then duplicate an instance with its tags, and these tags will be updated to make the host unique (hostname and DNS route pointing to it).

And a public route in the form of {group}-{number}.{env}.{zone}. For example :

Internal hostname will also be set to {group}-{number}.{env} like

Works on linux and windows (but needs a reboot once in windows after changing hostname).

Project url :


Add “python3 ec2-rename” at startup.


This libraries are used most on Linux and Windows systems.

This libraries are compatibles with Python 3.4+.

Mainly tested on 3.6.

Author & Licence

Copyright (c) 2010-2015 Ronan Delacroix

This program is released under MIT Licence. Feel free to use it or part of it anywhere you want.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ec2-namer, version 0.3.6
Filename, size File type Python version Upload date Hashes
Filename, size ec2-namer-0.3.6.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page