Skip to main content

A service that propagates tags from EC2 instances to EBS Volumes, and then to EBS Snapshots

Project description

Build Status

The Graffiti Monkey goes around tagging things. By looking at the tags an EC2 instance has, it copies those tags to the EBS Volumes that are attached to it, and then copies those tags to the EBS Snapshots.

Usage

usage: graffiti-monkey [-h] [--region REGION] [--verbose] [--version]

Propagates tags from AWS EC2 instances to EBS volumes, and then to EBS
snapshots. This makes it much easier to find things down the road.

optional arguments:
  -h, --help       show this help message and exit
  --region REGION  the region to tag things in (default is current region of
                   EC2 instance this is running on). E.g. us-east-1
  --verbose, -v    enable verbose output (-vvv for more)
  --version        display version number and exit

Examples

Suppose you have the following in us-east-1:

i-abcd1234
  - Tags:
    - Name: "Instance 1"

vol-bcde3456
  - Attached to i-abcd1234 on /dev/sda1

snap-cdef4567
  - Snapshot of vol-bcde3456

When you run:

graffiti-monkey --region us-east-1

First, Graffiti Monkey will set the EBS volume tags

vol-bcde3456
  - Tags:
    - Name: "Instance 1"
    - instance_id: i-abcd1234
    - device: /dev/sda1

and then it will set the tags on the EBS Snapshot

snap-cdef4567
  - Tags:
    - Name: "Instance 1"
    - instance_id: i-abcd1234
    - device: /dev/sda1

Installation

You can install Graffiti Monkey using the usual PyPI channels. Example:

sudo pip install graffiti_monkey

You can find the package details here: https://pypi-hypernode.com/pypi/graffiti_monkey

Alternatively, if you prefer to install from source:

git clone git@github.com:Answers4AWS/graffiti-monkey.git
cd graffiti-monkey
python setup.py install

Configuration

This project uses Boto to call the AWS APIs. You can pass your AWS credentials to Boto can by using a .boto file, IAM Roles or environment variables. Full information can be found here:

http://boto.readthedocs.org/en/latest/boto_config_tut.html

Wiki

Can be found here: https://github.com/Answers4AWS/graffiti-monkey/wiki

Source Code

The Python source code for Backup Monkey is available on GitHub:

https://github.com/Answers4AWS/graffiti-monkey

About Answers for AWS

This code was written by Peter Sankauskas, founder of Answers for AWS - a company focused on helping businesses learn how to use AWS, without doing it the hard way. If you are looking for help with AWS, please contact us.

License

Copyright 2013 Answers for AWS LLC

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

graffiti_monkey-0.7.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file graffiti_monkey-0.7.0.tar.gz.

File metadata

File hashes

Hashes for graffiti_monkey-0.7.0.tar.gz
Algorithm Hash digest
SHA256 8d629dc7a81bd40bbe31bf7b183afb56220b7f1a6e86666c72c7fd14028034a5
MD5 906a4e374ed141c81c0fa07c5d565e1e
BLAKE2b-256 be61f8d975b86f29286c40f858524cd83008b41bd8e47d4bebd718b3b82c4b1d

See more details on using hashes here.

File details

Details for the file graffiti_monkey-0.7.0.macosx-10.9-x86_64.tar.gz.

File metadata

File hashes

Hashes for graffiti_monkey-0.7.0.macosx-10.9-x86_64.tar.gz
Algorithm Hash digest
SHA256 a9b82b749564df14d0c66e7b0619e3e97989945747a444f805dd61ecd6d870a2
MD5 684aca0f67123f4489e40126db0a9ac4
BLAKE2b-256 8bac7c9848da63c70676230af1aefa5a0498a966b291ec146c97936746d888cf

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