{ "info": { "author": "takada-at", "author_email": "takada-at@klab.com", "bugtrack_url": null, "classifiers": [], "description": "AWS\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u7ba1\u7406\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002\n\n\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u3092csv\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u3064\u3051\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3001\u8ffd\u52a0\u3057\u305f\u3082\u306e\u3092API\u7d4c\u7531\u3067\u4fdd\u5b58\u3068\u3044\u3046\u4f7f\u3044\u65b9\u304c\u3067\u304d\u307e\u3059\u3002\n\n## \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n\n```\n$ pip install sg\n```\n\nOR\n\n```\n$ python setup.py install\n```\n\n## \u4f7f\u3044\u65b9\n\n\u9069\u5207\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057`init`\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n\u8a2d\u5b9a\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\n\n```\n$ cd yourpath\n$ sgsg.py init\nenter your region[us-east-1]:\nus-west-2\nsave to sg.cfg\nenter your aws_access_key_id:\nxxx\nenter your aws_secret_access_key:\nxxx\nsave to aws_key\n```\n\n### \u30ea\u30e2\u30fc\u30c8\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u3078\u306e\u540c\u671f\n\n\u4ee5\u4e0bAWS\u4e0a\u306b\u4fdd\u5b58\u3055\u308c\u305f\u8a2d\u5b9a\u3092\u300c\u30ea\u30e2\u30fc\u30c8\u8a2d\u5b9a\u300d\u3001csv\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u8a2d\u5b9a\u3092\u300c\u30ed\u30fc\u30ab\u30eb\u8a2d\u5b9a\u300d\u3068\u547c\u3073\u307e\u3059\u3002\n\n\u30ea\u30e2\u30fc\u30c8\u8a2d\u5b9a\u3092\u4fdd\u5b58\u3059\u308b\u306b\u306f`fetch`\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u307e\u3059\u3002\n\n```\n$ sgsg.py fetch\nmkdir security_groups\nGROUP: group\nsave to security_groups/group.csv\n```\n\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u305fcsv\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u30b3\u30e1\u30f3\u30c8\u306a\u3069\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a8\u30af\u30bb\u30eb\u306a\u3069\u3067\u7de8\u96c6\u3057\u3066\u304f\u3060\u3055\u3044(\u6587\u5b57\u30b3\u30fc\u30c9\u306futf-8\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059)\u3002\n\n\u306a\u304a\u3001\u65b0\u305f\u306a\u30ea\u30e2\u30fc\u30c8\u8a2d\u5b9a\u304c\u8ffd\u52a0\u3055\u308c\u305f\u5834\u5408\u3082`fetch`\u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u66f4\u65b0\u6642\u3082\u30b3\u30e1\u30f3\u30c8\u306a\u3069\u3092\u6d88\u3059\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\n\n\n### \u5dee\u5206\u306e\u8868\u793a\n\n\u30ed\u30fc\u30ab\u30eb\u3068\u30ea\u30e2\u30fc\u30c8\u306e\u5dee\u5206\u3092\u8868\u793a\u3059\u308b\u306b\u306f`diff`\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\n`L:`\u3068\u3064\u3044\u3066\u3044\u308b\u306e\u306f\u30ed\u30fc\u30ab\u30eb\u8a2d\u5b9a\u3060\u3051\u306b\u3042\u308b\u3082\u306e\u3001`R:`\u3068\u3064\u3044\u3066\u3044\u308b\u306e\u306f\u30ea\u30e2\u30fc\u30c8\u8a2d\u5b9a\u3060\u3051\u306b\u3042\u308b\u3082\u306e\u3067\u3059\u3002\n\n```\n$ sgsg.py diff\nGROUP: somegroup\nL:tcp 22 22 192.168.11.1/32\nR:tcp 22 22 0.0.0.0/32\n```\n\n### \u30ed\u30fc\u30ab\u30eb\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u3078\u306e\u540c\u671f\n\n\u66f4\u65b0\u3092\u53cd\u6620\u3059\u308b\u306b\u306f`commit`\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\ncsv\u306b\u8ffd\u52a0\u3001\u307e\u305f\u306f\u524a\u9664\u3092\u884c\u306a\u3063\u305f\u3042\u3068\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u5dee\u5206\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u78ba\u8a8d\u5f8cy\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n```\nsgsg.py commit security_groups/somegroup.csv\nGROUP: somegroup\npost this setting?[y/N]\n+tcp 80 80 192.168.0.1\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "sg", "package_url": "https://pypi.org/project/sg/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sg/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/sg/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "UNKNOWN", "version": "0.0.4" }, "last_serial": 1864688, "releases": { "0.0.1": [ { "comment_text": "built for Darwin-14.3.0", "digests": { "md5": "78a23dca30ff9b8e12a38cde45f27b23", "sha256": "3ddf8ba6e3cd8771e417bb33f0b31d3a8a57dd85416ec5d0e35cd40bd84a658f" }, "downloads": -1, "filename": "sg-0.0.1.macosx-10.10-x86_64.tar.gz", "has_sig": false, "md5_digest": "78a23dca30ff9b8e12a38cde45f27b23", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 13916, "upload_time": "2015-12-03T10:55:18", "url": "https://files.pythonhosted.org/packages/f3/ca/db3c8f01089740e99809a9da7725348c20e89e653539361259422f637be5/sg-0.0.1.macosx-10.10-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "64da21a76551166d50ca146cca237767", "sha256": "41f8973624ab5848fa392057f9b94e1bde21ff87baf61e6b54976ad53a6e3a05" }, "downloads": -1, "filename": "sg-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "64da21a76551166d50ca146cca237767", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 19850, "upload_time": "2015-12-03T10:55:28", "url": "https://files.pythonhosted.org/packages/45/28/d806845e4a78011ab1db33f487a33aa96e2b487ff1412c5dd4aab1b243c5/sg-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "cb3024e28c8acb3eace333bbdb78459f", "sha256": "c0fbb2aef943b956fca50e74a3999f80cae132b6b84360c5a81f13423b0f1f0d" }, "downloads": -1, "filename": "sg-0.0.1.tar.gz", "has_sig": false, "md5_digest": "cb3024e28c8acb3eace333bbdb78459f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6319, "upload_time": "2015-12-03T10:55:12", "url": "https://files.pythonhosted.org/packages/e5/29/eb5ca67d1001df1b07f51319c5962ffd3bcf4bf670e2a4cfa36d8b547619/sg-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "built for Darwin-14.3.0", "digests": { "md5": "f246539271303b04da8f2cd4840b84c6", "sha256": "5ab2dd5a9dfb1b35e6a236305975620261b6c07f133516d0be3e4d896cecb19b" }, "downloads": -1, "filename": "sg-0.0.2.macosx-10.10-x86_64.tar.gz", "has_sig": false, "md5_digest": "f246539271303b04da8f2cd4840b84c6", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 17437, "upload_time": "2015-12-16T03:33:49", "url": "https://files.pythonhosted.org/packages/75/e9/53879e7ae820e4b333d0a4a191447b803e7fad977047f7f133a193552c3c/sg-0.0.2.macosx-10.10-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "7d912d63d8ec8f99fbf362650a9b0bc2", "sha256": "0072bc52f6cd343b1f3c20d249b790b3e20602cf36c7e067a69c4642b171b018" }, "downloads": -1, "filename": "sg-0.0.2-py2.7.egg", "has_sig": false, "md5_digest": "7d912d63d8ec8f99fbf362650a9b0bc2", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 23918, "upload_time": "2015-12-16T03:33:53", "url": "https://files.pythonhosted.org/packages/d6/d0/ddd5f9d11553fc21ad80efb8a9243d25b2504c8ba5683ddcfff1abb2ba15/sg-0.0.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "b4f33440f26c6fe6003c9ee5ade7e482", "sha256": "0eec1cbd2a25c66f776c17ca3f0ebbce9bd0db58e87498be9bae39118c64f536" }, "downloads": -1, "filename": "sg-0.0.2.tar.gz", "has_sig": false, "md5_digest": "b4f33440f26c6fe6003c9ee5ade7e482", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7738, "upload_time": "2015-12-16T03:33:44", "url": "https://files.pythonhosted.org/packages/4b/bc/22f7448bc24320e160c12c207628350c84a69d4f3a3ef504bd2e33f41bc9/sg-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "built for Darwin-14.3.0", "digests": { "md5": "073112b84e96799f9d011cbd48385e69", "sha256": "c145db807dea0d8cca9ea8668729c30c2dd3a2856f0e12a0e0ba9244ea8d261c" }, "downloads": -1, "filename": "sg-0.0.3.macosx-10.10-x86_64.tar.gz", "has_sig": false, "md5_digest": "073112b84e96799f9d011cbd48385e69", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 17463, "upload_time": "2015-12-16T07:05:31", "url": "https://files.pythonhosted.org/packages/7a/0c/51b8209f42b761291c5b2fb891408169f29549044a0308eaa76d7124c56b/sg-0.0.3.macosx-10.10-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "515501c8065d33dcd94de8c1bbc5699d", "sha256": "777071ccea85f7ad1459d28e0c36383f5937c9f40b5b3a8b4fdbdf7c578d25f2" }, "downloads": -1, "filename": "sg-0.0.3-py2.7.egg", "has_sig": false, "md5_digest": "515501c8065d33dcd94de8c1bbc5699d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 23952, "upload_time": "2015-12-16T07:05:39", "url": "https://files.pythonhosted.org/packages/9e/ce/371fc10fa267eed13b9e73e91b9a5f905b85bfae44ea03ce539f3b3f2ed0/sg-0.0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "4daad211e00906d209cf150f4c7caacd", "sha256": "6258534318f57cb4038d883e96e9c3d0dc74f636457f0cca3f8d6fb902d7a46a" }, "downloads": -1, "filename": "sg-0.0.3.tar.gz", "has_sig": false, "md5_digest": "4daad211e00906d209cf150f4c7caacd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7751, "upload_time": "2015-12-16T07:05:26", "url": "https://files.pythonhosted.org/packages/6c/54/c375ce3413e2cfd93ceefc08c7fb93a7930ea5ee22eb5a66b92eddfa6f3e/sg-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "built for Darwin-14.3.0", "digests": { "md5": "6fb7a6f8f8c61b1aee9e15332c52723a", "sha256": "9df546fbad699dd0c5ecf929c5273258db07e31b04c6e6b94a04b9d8821c86e7" }, "downloads": -1, "filename": "sg-0.0.4.macosx-10.10-x86_64.tar.gz", "has_sig": false, "md5_digest": "6fb7a6f8f8c61b1aee9e15332c52723a", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 18294, "upload_time": "2015-12-16T08:38:30", "url": "https://files.pythonhosted.org/packages/fa/97/0eb28611fd5a694ca87f3feed3e047a480e1644848d558a1299222b99f8a/sg-0.0.4.macosx-10.10-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "6950a15f2b620996d2b21b7e1316c593", "sha256": "7a883d90d87b883aa339c4ef3870371baeb01db6530c556601f76d2ca036011e" }, "downloads": -1, "filename": "sg-0.0.4-py2.7.egg", "has_sig": false, "md5_digest": "6950a15f2b620996d2b21b7e1316c593", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 24891, "upload_time": "2015-12-16T08:38:38", "url": "https://files.pythonhosted.org/packages/6b/90/54e09ef54a4e1247d7f93731fbd2b9f7b609c90395467fa52caa07796c92/sg-0.0.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e5c77e7caa8e91d70666f20ce80d30c5", "sha256": "4d42f7c1ad78cc3a79397422f52ffe39b1d440d1ef7d824023640baac8e29856" }, "downloads": -1, "filename": "sg-0.0.4.tar.gz", "has_sig": false, "md5_digest": "e5c77e7caa8e91d70666f20ce80d30c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9092, "upload_time": "2015-12-16T08:38:24", "url": "https://files.pythonhosted.org/packages/e6/45/ec581f9237e98aa3df08ff2b3bcf48d41e97a5ca8129d6668fa1d28b11ca/sg-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "built for Darwin-14.3.0", "digests": { "md5": "6fb7a6f8f8c61b1aee9e15332c52723a", "sha256": "9df546fbad699dd0c5ecf929c5273258db07e31b04c6e6b94a04b9d8821c86e7" }, "downloads": -1, "filename": "sg-0.0.4.macosx-10.10-x86_64.tar.gz", "has_sig": false, "md5_digest": "6fb7a6f8f8c61b1aee9e15332c52723a", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 18294, "upload_time": "2015-12-16T08:38:30", "url": "https://files.pythonhosted.org/packages/fa/97/0eb28611fd5a694ca87f3feed3e047a480e1644848d558a1299222b99f8a/sg-0.0.4.macosx-10.10-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "6950a15f2b620996d2b21b7e1316c593", "sha256": "7a883d90d87b883aa339c4ef3870371baeb01db6530c556601f76d2ca036011e" }, "downloads": -1, "filename": "sg-0.0.4-py2.7.egg", "has_sig": false, "md5_digest": "6950a15f2b620996d2b21b7e1316c593", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 24891, "upload_time": "2015-12-16T08:38:38", "url": "https://files.pythonhosted.org/packages/6b/90/54e09ef54a4e1247d7f93731fbd2b9f7b609c90395467fa52caa07796c92/sg-0.0.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e5c77e7caa8e91d70666f20ce80d30c5", "sha256": "4d42f7c1ad78cc3a79397422f52ffe39b1d440d1ef7d824023640baac8e29856" }, "downloads": -1, "filename": "sg-0.0.4.tar.gz", "has_sig": false, "md5_digest": "e5c77e7caa8e91d70666f20ce80d30c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9092, "upload_time": "2015-12-16T08:38:24", "url": "https://files.pythonhosted.org/packages/e6/45/ec581f9237e98aa3df08ff2b3bcf48d41e97a5ca8129d6668fa1d28b11ca/sg-0.0.4.tar.gz" } ] }