{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Topic :: System :: Distributed Computing", "Topic :: System :: Systems Administration" ], "description": "# AWS Retroactive Tagging Resource Creators\n\nThis script will process cloudtrail records to create a sqlite db of\nresources and their creators, and then use that sqlitedb to tag\nthe resources with their creator's name.\n\nIn processing cloudtrail it can use either Athena or S3 Select. A\nconfig file of the events and resources of interest is required.\n\n## Install\n\n```shell\n$ pip install c7n_trailcreator\n\n$ c7n-trailcreator --help\n```\n\n## Config File\n\nThe config file format here is similiar to what custodian requires\nfor lambda policies on cloudtrail api events as an event selector.\n\nFirst for each resource, the custodian resource-type is required\nto be specified, and then for each event, we need to know the\nname of the service, the event name, and a jmespath expression\nto get the resource ids.\n\nHere's a a few examples, covering iam-user, iam-role, and and an s3 bucket.\n\n\n```json\n{\n \"resources\": [\n {\n \"resource\": \"iam-role\",\n \"events\": [\n {\n \"event\": \"CreateRole\",\n \"ids\": \"requestParameters.roleName\",\n \"service\": \"iam.amazonaws.com\"\n }\n ]\n },\n {\n \"resource\": \"s3\",\n \"events\": [\n {\n \"ids\": \"requestParameters.bucketName\",\n \"event\": \"CreateBucket\",\n \"service\": \"s3.amazonaws.com\"\n }\n ]\n },\n {\n \"resource\": \"iam-user\",\n \"events\": [\n {\n \"event\": \"CreateUser\",\n \"ids\": \"requestParameters.userName\",\n \"service\": \"iam.amazonaws.com\"\n }\n ]\n }]\n}\n```\n\n\n## Tagging\n\nIt supports this across all the resources that custodian supports.\n\n\n## Multi Account / Multi Region\n\nc7n-trailcreator supports executing across multiple accounts and regions when tagging\nusing the same file format that c7n-org uses to denote accounts.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/capitalone/cloud-custodian", "keywords": "", "license": "Apache-2.0", "maintainer": "", "maintainer_email": "", "name": "c7n-trailcreator", "package_url": "https://pypi.org/project/c7n-trailcreator/", "platform": "", "project_url": "https://pypi.org/project/c7n-trailcreator/", "project_urls": { "Homepage": "https://github.com/capitalone/cloud-custodian" }, "release_url": "https://pypi.org/project/c7n-trailcreator/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "Cloud Custodian - Retroactive Tag Resource Creators from CloudTrail", "version": "0.1.4" }, "last_serial": 5416210, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f6620fc7dc61ed18f58e9775cda94a92", "sha256": "ab3fbdd97180ea4953e7fe4bf0763b09015a621e6f839765c1db90c8f6fe5eec" }, "downloads": -1, "filename": "c7n_trailcreator-0.1.tar.gz", "has_sig": false, "md5_digest": "f6620fc7dc61ed18f58e9775cda94a92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1311, "upload_time": "2019-05-11T12:24:11", "url": "https://files.pythonhosted.org/packages/b2/c4/bd130d7af5ae3e088f255f38a4c78ac2fe40537f38f96d16da8d08869cb9/c7n_trailcreator-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4ebd383ecc7e0e576c9c5142e4d7bfbb", "sha256": "5bd4e9fc1adf000e1e638ca6032df42acdf5d8164c6e2d698e5ffbbdbc9ad26f" }, "downloads": -1, "filename": "c7n_trailcreator-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4ebd383ecc7e0e576c9c5142e4d7bfbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025, "upload_time": "2019-05-11T12:27:42", "url": "https://files.pythonhosted.org/packages/21/7b/0b81c768c72885bfa80f507f9ded1c3945446345c25ea33dbea72e4153b5/c7n_trailcreator-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "02917b1597eb3e31cb2250d449e6f9b7", "sha256": "aa015655dc63f002d2852757386dde979333d9db87b08a4675fdececd82520a9" }, "downloads": -1, "filename": "c7n_trailcreator-0.1.2.tar.gz", "has_sig": false, "md5_digest": "02917b1597eb3e31cb2250d449e6f9b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2043, "upload_time": "2019-05-14T14:59:55", "url": "https://files.pythonhosted.org/packages/f0/ec/9fba246762951275d6f9556eaae4885bc52ff32c8334a46e69c33cc9b4cf/c7n_trailcreator-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "24e03ab4c14c5224bf7c93e6443e1397", "sha256": "fd84ce3fe5c517e302caaa12f9d839ed313880213c6a954e398c1f7918c4c24e" }, "downloads": -1, "filename": "c7n_trailcreator-0.1.4.tar.gz", "has_sig": false, "md5_digest": "24e03ab4c14c5224bf7c93e6443e1397", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10203, "upload_time": "2019-06-18T16:33:15", "url": "https://files.pythonhosted.org/packages/7a/37/f7b5f536c69388b5a05b0b6f30eb007c20916f2a035969e9a243b60591be/c7n_trailcreator-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "24e03ab4c14c5224bf7c93e6443e1397", "sha256": "fd84ce3fe5c517e302caaa12f9d839ed313880213c6a954e398c1f7918c4c24e" }, "downloads": -1, "filename": "c7n_trailcreator-0.1.4.tar.gz", "has_sig": false, "md5_digest": "24e03ab4c14c5224bf7c93e6443e1397", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10203, "upload_time": "2019-06-18T16:33:15", "url": "https://files.pythonhosted.org/packages/7a/37/f7b5f536c69388b5a05b0b6f30eb007c20916f2a035969e9a243b60591be/c7n_trailcreator-0.1.4.tar.gz" } ] }