Skip to main content

EC2 Namer - AWS EC2 host naming tool.

About

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’: ‘my-dns.com’

  • ‘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 : webserver-0001.dev.my_dns.com

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

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

Project url : https://github.com/ronhanson/ec2-namer

Usage

Add “python3 ec2-rename” at startup.

Compatibility

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.

Metadata

Release files for ec2-namer 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ec2-namer 0.4.2
File Size Uploaded Provenance
ec2-namer-0.4.2.zip 10.1 kB Without provenance Details

Release files / ec2-namer-0.4.2.zip

Download URL ec2-namer-0.4.2.zip
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fcc395333bbc1ff270e74022458cead23f1ac2f4410f14208e07f7d9a7da3f75
BLAKE2b-256 checksum
How to use checksums
fe4dc002db78cbe75074bbc533f5821bb4aedf7f6c32ff18907ade85c41bfb8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for ec2-namer 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page