Skip to main content

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.

Release files for ec2-namer 0.1.0

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.1.0
File Size Uploaded
ec2-namer-0.1.0.tar.gz 3.0 kB Details

Release files / ec2-namer-0.1.0.tar.gz

Download URL ec2-namer-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
82b37f535e974d50f8be7869d1f789dabb9b73bb389289561173bf27762e9fd9
BLAKE2b-256 checksum
How to use checksums
d38ac9b8d5bd5db05e2c9b7e4464ab056d6e2c22d8ed8c804c11c66c94f3771d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

This release

0.1.0 This release

1 release file

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