{ "info": { "author": "Gilad Sharaby", "author_email": "giladsh1@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7" ], "description": "# spotinst-cli\nspotinst-cli is is an interactive command line tool which allows you to to control your spotinst groups and instances.\n\n### Installation \n```\npip install spotinstcli\n```\n\n### Usage \n\nspotinst-cli has the following flags -\n```\n -h, --help show this help message and exit\n -a ACCOUNT, --account=ACCOUNT spotinst account id defined as environment variable\n -g GREP, --grep=GREP text to filter groups by\n -u UNGREP, --ungrep=UNGREP text to exclude groups\n -l, --list show group list and exit\n -j, --json output pure json -- useful for piping into json parsers like jq\n -d, --get-data get groups data from spotinst\n -s, --get-status get groups status \n --get-health get groups health per instance\n --min=MIN update group minimum capacity, must supply with max and target\n --target=TARGET update group target capacity, must supply with min and max\n --max=MAX update group maximum capacity, must supply with min and target\n --scale-up=SCALE_UP scale up group by X number of instances\n --scale-down=SCALE_DOWN scale down group by X number of instances\n --suspend suspend group activities\n --unsuspend unsuspend group activities\n --suspension-status get groups suspension status \n --roll roll a group, must supply batch-size, and grace-period\n --batch-size=BATCH roll batch size - must supply with the roll flag\n --grace-period=GRACE roll grace period - must supply with the roll flag\n --replace-ami=AMI replace AMI for group\n --replace-health=HEALTH replace the health check type - can be HCS, EC2, ELB\n --set-user-data=USER_DATA updated user data - supply a file path which contains the user data script (cloud init)\n --get-user-data fetch the user data script (cloud init)\n --roll-status check the status of deployments\n -y, --skip-validation skip prompt validation for non-interactive mode\n```\n\n### Multiple Accounts\nspotinst-cli can use environment variables to reference multiple provider accounts. \nSet variables like:\n\n export spotinst_account_prod=\"act-asdfasdf\"\n export spotinst_account_qa=\"act-hjklhjkl\"\n export spotinst_account_dev=\"act-zxcvzxcv\"\n\n $> spotinst-cli --account prod\n\n ====================================================\n Getting groups from Spotisnt, please wait...\n ====================================================\n\n ===================================\n Found the following groups:\n ===================================\n\n +---+-------------------------------+--------------+-----+--------+-----+\n | # | Group name | ID | Min | Target | Max |\n +---+-------------------------------+--------------+-----+--------+-----+\n | 1 | Group-A | sig-adsfadfd | 0 | 0 | 200 |\n | 2 | Group-B | sig-fddgdfgd | 0 | 0 | 200 |\n | 3 | Group-C | sig-hdfhsfdg | 0 | 52 | 200 |\n | 4 | Web Servers | sig-hfhdgdhg | 0 | 0 | 4 |\n | 5 | ECS | sig-dfghdfgh | 1 | 8 | 12 |\n +---+-------------------------------+--------------+-----+--------+-----+\n\nSpotInst account ids can be found in the web console under settings/account for each of your accounts. \nThere is currently no way to pull account ids from the SpotInst API. \n\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/giladsh1/spotinst-cli", "keywords": "spotinst cli aws spotinst-cli", "license": "", "maintainer": "", "maintainer_email": "", "name": "spotinstcli", "package_url": "https://pypi.org/project/spotinstcli/", "platform": "", "project_url": "https://pypi.org/project/spotinstcli/", "project_urls": { "Homepage": "https://github.com/giladsh1/spotinst-cli" }, "release_url": "https://pypi.org/project/spotinstcli/0.1.3/", "requires_dist": [ "prettytable", "requests", "PyInquirer", "clint", "wcwidth" ], "requires_python": "", "summary": "CLI tool for interacting with Spotinst AWS elasticgroups", "version": "0.1.3" }, "last_serial": 4774128, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "0c22658c2c6aa615f1685fe985fc670a", "sha256": "2a676e2af7c6260a3a2335a7d2fcecdaf642fd58169c987feca37caa642ac845" }, "downloads": -1, "filename": "spotinstcli-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "0c22658c2c6aa615f1685fe985fc670a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9040, "upload_time": "2019-01-29T22:53:01", "url": "https://files.pythonhosted.org/packages/2d/d4/e4e805ae0b220ac3542c656ee95b9ea7a9bd69a9266a6ebc42fed99b5eb5/spotinstcli-0.1.2-py2-none-any.whl" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "4b1a5a9b8ef19dfe28bb65f76a50a03b", "sha256": "8ed68f27f8f6ee55ae87a1a9d0e6f2e40e5af571654554b005756af41f3a242b" }, "downloads": -1, "filename": "spotinstcli-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "4b1a5a9b8ef19dfe28bb65f76a50a03b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9399, "upload_time": "2019-02-03T07:24:02", "url": "https://files.pythonhosted.org/packages/c1/76/bfbdcb34380d6f65914cc5a3cab70844bf3b1e0b1bbfc7a1d1064262b267/spotinstcli-0.1.3-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4b1a5a9b8ef19dfe28bb65f76a50a03b", "sha256": "8ed68f27f8f6ee55ae87a1a9d0e6f2e40e5af571654554b005756af41f3a242b" }, "downloads": -1, "filename": "spotinstcli-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "4b1a5a9b8ef19dfe28bb65f76a50a03b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9399, "upload_time": "2019-02-03T07:24:02", "url": "https://files.pythonhosted.org/packages/c1/76/bfbdcb34380d6f65914cc5a3cab70844bf3b1e0b1bbfc7a1d1064262b267/spotinstcli-0.1.3-py2-none-any.whl" } ] }