{ "info": { "author": "Chris Speck", "author_email": "chris@chrisspeck.com", "bugtrack_url": null, "classifiers": [], "description": "===========\nENI Arbiter\n===========\n\nThis utility lets you define a pool of Amazon Elastic Network Interfaces and Elastic IP Addresses and instance tag filter criteria.\n\nWhen run it will:\n\n#. find instances that match the criteria\n#. attach any spare `Elastic Network Interface `_ to any matched running instance which does not have one from the set you defined\n#. attach any spare `Elastic IP Addresses `_ to any matched running instance which does not have one from the set you defined\n\nWhen an instance is terminated AWS detaches the Elastic Network Interface or Elastic IP Address for you automatically.\n\nThis requires environment variables or an IAM Role to be assigned to the machine it is being run on.\n\nDepends on boto (2.38.0) and so requires Python 2.7 and is installable from PyPI with ``pip install eniarbiter``.\n\nSample Config::\n\n {\n \"region\": \"ap-southeast-2\",\n \"eni_list\": [\"eni-913c08e6\", \"eni-9d3c08ea\", \"eni-d33c08a4\", \"eni-cd3e0aba\"],\n \"ip_list\": [\"222.15.158.2\", \"74.89.251.77\", \"10.126.147.95\", \"115.69.216.207\", \"52.124.77.212\"],\n \"instance_tag_spec\": {\n \"tag:aws:autoscaling:groupName\": \"cs-TEST\",\n \"tag:Availability\": \"{\\\"availability\\\": \\\"24x7\\\"}\"\n }\n }\n\nThe variables ``eni_list`` and ``ip_list`` may be omitted if you do not require that functionality.\n\nRunning\n-------\n\nAfter activating your virtualenv, run ``eniarbiter {CONFIG}``, e.g.::\n\n (eniarbiter)[chris@tripparch eniarbiter]$ eniarbiter config.json\n 2015-04-14 23:06:52,121 - INFO - Connecting to AWS...\n 2015-04-14 23:06:52,123 - INFO - Retrieving ENIs...\n 2015-04-14 23:06:52,821 - INFO - 3 available ENIS\n 2015-04-14 23:06:52,954 - INFO - 3 running matching instances\n 2015-04-14 23:06:52,954 - INFO - Attaching interface eni-cd3e0aba to instance i-07c46dc9 as eth1\n 2015-04-14 23:06:53,180 - INFO - Attaching interface eni-9d3c08ea to instance i-b4c46d7a as eth1\n 2015-04-14 23:06:53,389 - INFO - Instance i-1fc56cd1 already has a specified ENI attached\n\nAnd if you immediately re-run you will see that the ENIs are attached and available count has reduced::\n\n (eniarbiter)[chris@tripparch eniarbiter]$ eniarbiter config.json\n 2015-04-14 23:07:05,039 - INFO - Connecting to AWS...\n 2015-04-14 23:07:05,041 - INFO - Retrieving ENIs...\n 2015-04-14 23:07:05,436 - INFO - 1 available ENIS\n 2015-04-14 23:07:05,748 - INFO - 3 running matching instances\n 2015-04-14 23:07:05,749 - INFO - Instance i-07c46dc9 already has a specified ENI attached\n 2015-04-14 23:07:05,749 - INFO - Instance i-b4c46d7a already has a specified ENI attached\n 2015-04-14 23:07:05,749 - INFO - Instance i-1fc56cd1 already has a specified ENI attached\n (eniarbiter)[chris@tripparch eniarbiter]$\n\nThere is also a Dry Run mode (``--dry-run`` or ``-c``)::\n\n (eniarbiter)[chris@tripparch eniarbiter]$ eniarbiter config.json -c\n 2015-04-14 23:06:39,959 - INFO - Connecting to AWS...\n 2015-04-14 23:06:39,961 - INFO - Retrieving ENIs...\n 2015-04-14 23:06:40,174 - INFO - 3 available ENIS\n 2015-04-14 23:06:40,316 - INFO - 3 running matching instances\n 2015-04-14 23:06:40,317 - INFO - Propose attching interface eni-cd3e0aba to instance i-07c46dc9 as eth1\n 2015-04-14 23:06:40,317 - INFO - Propose attching interface eni-9d3c08ea to instance i-b4c46d7a as eth1\n 2015-04-14 23:06:40,317 - INFO - Instance i-1fc56cd1 already has a specified ENI attached\n\nSetup from source\n-----------------\n\nCreate virtualenv::\n\n mkvirtualenv -p `which python2.7` eni_arbiter\n\nOr activate existing virtualenv::\n\n workon eni_arbiter\n\nThen install::\n\n python setup.py install\n\nFor development I suggest you do a ``pip install -r requirements-dev.txt``.\n\n\nInitially created April 2015 by Chris Speck | `Web `_ | `Github `_\n\nLicensed under the GPLv3", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/cgspeck/eniarbiter/tarball/1.3.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cgspeck/eniarbiter", "keywords": "AWS,ec2,ENI,boto,Elastic IP Address,Elastic Network Interface", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "eniarbiter", "package_url": "https://pypi.org/project/eniarbiter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/eniarbiter/", "project_urls": { "Download": "https://github.com/cgspeck/eniarbiter/tarball/1.3.2", "Homepage": "https://github.com/cgspeck/eniarbiter" }, "release_url": "https://pypi.org/project/eniarbiter/1.3.2/", "requires_dist": null, "requires_python": null, "summary": "AWS Elastic Network Interface & Elastic IP Address Assigner", "version": "1.3.2" }, "last_serial": 1660456, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "6c99d3560be91007ee4cf87fa3c94e9d", "sha256": "267e7feca509891fffb1078f9b2326508ebe10568209291ed4efc406eb275dc8" }, "downloads": -1, "filename": "eniarbiter-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6c99d3560be91007ee4cf87fa3c94e9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3727, "upload_time": "2015-07-21T00:29:27", "url": "https://files.pythonhosted.org/packages/9c/ea/75d0405506450a9fb3ab11343ad5e3d7d72bbb155bb15d3c4778ae95e65d/eniarbiter-1.0.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "9412db501d591a158fa2599f72e949ad", "sha256": "d84e2362a3b3bcf9a5e51d227ecc5c94b9ffc02cf71f54abe7595da71a216870" }, "downloads": -1, "filename": "eniarbiter-1.1.1.tar.gz", "has_sig": false, "md5_digest": "9412db501d591a158fa2599f72e949ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4141, "upload_time": "2015-07-21T05:04:13", "url": "https://files.pythonhosted.org/packages/40/a1/1b62d83c72c48f02af1babfcdba9da54efee183d346dada8bbcf11352da2/eniarbiter-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "2d75a2b7b92c131302ca96531bf11690", "sha256": "fe61b3be45e9e4b903a10d6fe16fcec2f71ccc7ca980a7e8a082aabf6e5e9b33" }, "downloads": -1, "filename": "eniarbiter-1.1.2.tar.gz", "has_sig": false, "md5_digest": "2d75a2b7b92c131302ca96531bf11690", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4139, "upload_time": "2015-07-21T05:06:44", "url": "https://files.pythonhosted.org/packages/e3/2c/479e7aa37815808a49851c15033243fbc7af419a8c87e8061d63248163b6/eniarbiter-1.1.2.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "8f818798a4917abbce3586d28729eede", "sha256": "ccdca40e0a80de126f69e97a30156025abff45f9268d72060ba81337f9c66790" }, "downloads": -1, "filename": "eniarbiter-1.2.2.tar.gz", "has_sig": false, "md5_digest": "8f818798a4917abbce3586d28729eede", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4562, "upload_time": "2015-07-23T07:42:57", "url": "https://files.pythonhosted.org/packages/fe/26/e32f19aae47be4806d1ec0762ac22c4e2239c2045d5e05d5bbf71ee9d744/eniarbiter-1.2.2.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "f39efa07f304a25de46928775068329a", "sha256": "b9d1bf6b3ca77a3f1b5a9231046a624d0d3a1c00ff666a5acb5db89ff9f28fcd" }, "downloads": -1, "filename": "eniarbiter-1.3.0.tar.gz", "has_sig": false, "md5_digest": "f39efa07f304a25de46928775068329a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4562, "upload_time": "2015-07-23T07:56:42", "url": "https://files.pythonhosted.org/packages/e8/5b/b85bedf2422f60d7666f10ef4f42252f1fce3a38ae5a53be19175a8e2ca9/eniarbiter-1.3.0.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "d29bc354a817b17c9b628d45d996d8e2", "sha256": "4083bd6acfbc77b05e30879441abf1f56ad4a799a0bf617074d78d70cd6bf860" }, "downloads": -1, "filename": "eniarbiter-1.3.2.tar.gz", "has_sig": false, "md5_digest": "d29bc354a817b17c9b628d45d996d8e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4864, "upload_time": "2015-08-02T07:20:33", "url": "https://files.pythonhosted.org/packages/f4/ad/6463e8f41f963d66c7985c2222981033f62486a38b4f2a267721bbe64087/eniarbiter-1.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d29bc354a817b17c9b628d45d996d8e2", "sha256": "4083bd6acfbc77b05e30879441abf1f56ad4a799a0bf617074d78d70cd6bf860" }, "downloads": -1, "filename": "eniarbiter-1.3.2.tar.gz", "has_sig": false, "md5_digest": "d29bc354a817b17c9b628d45d996d8e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4864, "upload_time": "2015-08-02T07:20:33", "url": "https://files.pythonhosted.org/packages/f4/ad/6463e8f41f963d66c7985c2222981033f62486a38b4f2a267721bbe64087/eniarbiter-1.3.2.tar.gz" } ] }