Skip to main content

Throwie - EC2 instances tagging tool

Project description

A small CLI tool aimed to simplify EC2 tags management


Throwie - creates or updates tags on a filtered collection of EC2 instances. In a nutshell it:

  • Filters instances based on specified criteria

  • Removes existing tags from filtered collection (if required)

  • Creates new tags on filtered collection of EC2 instances

Usage

usage: throwie [-h] -f FILTER_TYPE -i INVENTORY [INVENTORY ...] -t TAGS

Throwie - create/update tags on a collection of EC2 instances.

optional arguments:
  -h, --help            show this help message and exit
  -f FILTER_TYPE, --filter_type FILTER_TYPE EC2 filter type, see EC2.Client.describe_instances for valid filter values
  -i INVENTORY [INVENTORY ...], --inventory INVENTORY [INVENTORY ...] EC2 filter values, space separated, could be private ip addresses or instance-id depending on filter type
  -t TAGS, --tags TAGS  EC2 tags in json format

Installation

$ pip install throwie

Example

Tag EC2 instances by specified private ip addresses:

throwie -i 192.168.244.192 192.168.247.118 -f private-ip-address --tags '{"api-version": "v1.0.1"}'

Tag EC2 instances by specified instance ids:

throwie -i i-cex0d811 i-561s6370 -f instance-id --tags '{"api-version": "v1.0.1"}'

Project details


Download files

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

Source Distribution

throwie-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file throwie-1.0.0.tar.gz.

File metadata

  • Download URL: throwie-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for throwie-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5f7ce39386519450e643e81a52233ac0a1e75f8170e6f3b56431e357f4dea2eb
MD5 b5a034cb3d606b43e94df16b57ecd205
BLAKE2b-256 5ff8f3d3860bd621682fa080b2a7e86ebb8b697f22a1a07ba3df3e5a3947ab7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page