resoto-plugin-tagvalidator


Nameresoto-plugin-tagvalidator JSON
Version 3.6.4 PyPI version JSON
download
home_page
SummaryResoto Tag Validator Plugin
upload_time2023-07-24 18:35:30
maintainer
docs_urlNone
authorSome Engineering Inc.
requires_python>=3.9
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # resoto-plugin-tagvalidator
Tag Validator plugin for Resoto

This plugin validates the contents of expiration tags. With it you can enforce a max. expiration length for certain resources in an account. For instance you could have an org policy that says in our "dev" account compute instances are only allowed to exist for 2 days max. Then this plugin can ensure that the expiration tag on those instances is set to no more than 2 days. If it is set to e.g. 50h it would be corrected down to 48h.

## Usage

In `resh` execute

```
> config edit resoto.worker
```

and find the following section

```
plugin_tagvalidator:
  # Configuration for the plugin
  # See https://github.com/someengineering/resoto/tree/main/plugins/tagvalidator for syntax details
  config:
    default:
      expiration: '24h'
    kinds:
      - 'aws_ec2_instance'
      - 'aws_vpc'
      - 'aws_cloudformation_stack'
      - 'aws_elb'
      - 'aws_alb'
      - 'aws_alb_target_group'
      - 'aws_eks_cluster'
      - 'aws_eks_nodegroup'
      - 'aws_ec2_nat_gateway'
    accounts:
      aws:
        '123465706934':
          name: 'eng-audit'
        '123479172032':
          name: 'eng-devprod'
        '123453451782':
          name: 'sales-lead-gen'
          expiration: '12h'
        '123415487488':
          name: 'sales-hosted-lead-gen'
          expiration: '8d'
  # Dry run
  dry_run: false
  # Enable plugin?
  enabled: false
```

## Structure of the config section

The config contains a default section with the expiration that should be used for all accounts by default. The kinds section contains the list of kinds that these expiration tag rules apply to. The accounts section contain the cloud ids followed by the account ids. Each account id must contain a `name` and optionally an `expiration` that overwrites the global default.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "resoto-plugin-tagvalidator",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "",
    "author": "Some Engineering Inc.",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/ca/a5/245dad6f3036e70bdd79fbfeec72370eecf0a69eff20fd8687644ef3c769/resoto-plugin-tagvalidator-3.6.4.tar.gz",
    "platform": null,
    "description": "# resoto-plugin-tagvalidator\nTag Validator plugin for Resoto\n\nThis plugin validates the contents of expiration tags. With it you can enforce a max. expiration length for certain resources in an account. For instance you could have an org policy that says in our \"dev\" account compute instances are only allowed to exist for 2 days max. Then this plugin can ensure that the expiration tag on those instances is set to no more than 2 days. If it is set to e.g. 50h it would be corrected down to 48h.\n\n## Usage\n\nIn `resh` execute\n\n```\n> config edit resoto.worker\n```\n\nand find the following section\n\n```\nplugin_tagvalidator:\n  # Configuration for the plugin\n  # See https://github.com/someengineering/resoto/tree/main/plugins/tagvalidator for syntax details\n  config:\n    default:\n      expiration: '24h'\n    kinds:\n      - 'aws_ec2_instance'\n      - 'aws_vpc'\n      - 'aws_cloudformation_stack'\n      - 'aws_elb'\n      - 'aws_alb'\n      - 'aws_alb_target_group'\n      - 'aws_eks_cluster'\n      - 'aws_eks_nodegroup'\n      - 'aws_ec2_nat_gateway'\n    accounts:\n      aws:\n        '123465706934':\n          name: 'eng-audit'\n        '123479172032':\n          name: 'eng-devprod'\n        '123453451782':\n          name: 'sales-lead-gen'\n          expiration: '12h'\n        '123415487488':\n          name: 'sales-hosted-lead-gen'\n          expiration: '8d'\n  # Dry run\n  dry_run: false\n  # Enable plugin?\n  enabled: false\n```\n\n## Structure of the config section\n\nThe config contains a default section with the expiration that should be used for all accounts by default. The kinds section contains the list of kinds that these expiration tag rules apply to. The accounts section contain the cloud ids followed by the account ids. Each account id must contain a `name` and optionally an `expiration` that overwrites the global default.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Resoto Tag Validator Plugin",
    "version": "3.6.4",
    "project_urls": {
        "Documentation": "https://resoto.com",
        "Source": "https://github.com/someengineering/resoto/tree/main/plugins/tagvalidator"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1fc66226826e000650c245d8030db88994bb7ab37930bb354dfa798546415a8",
                "md5": "c9a5442b122eaff52d1e541591fa9412",
                "sha256": "96a5841936bbe5e94c6207cae72611e7704ea7e261ff66a01c3805c7ec29aede"
            },
            "downloads": -1,
            "filename": "resoto_plugin_tagvalidator-3.6.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c9a5442b122eaff52d1e541591fa9412",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5257,
            "upload_time": "2023-07-24T18:35:29",
            "upload_time_iso_8601": "2023-07-24T18:35:29.488338Z",
            "url": "https://files.pythonhosted.org/packages/a1/fc/66226826e000650c245d8030db88994bb7ab37930bb354dfa798546415a8/resoto_plugin_tagvalidator-3.6.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "caa5245dad6f3036e70bdd79fbfeec72370eecf0a69eff20fd8687644ef3c769",
                "md5": "f8a8271a22ca382aeeed5dc656dfd0f1",
                "sha256": "a3f42a3ce82d48df635c125af4aa9ba1d9bf2d8c9125e50594fbb2e29029e7e8"
            },
            "downloads": -1,
            "filename": "resoto-plugin-tagvalidator-3.6.4.tar.gz",
            "has_sig": false,
            "md5_digest": "f8a8271a22ca382aeeed5dc656dfd0f1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 5228,
            "upload_time": "2023-07-24T18:35:30",
            "upload_time_iso_8601": "2023-07-24T18:35:30.465677Z",
            "url": "https://files.pythonhosted.org/packages/ca/a5/245dad6f3036e70bdd79fbfeec72370eecf0a69eff20fd8687644ef3c769/resoto-plugin-tagvalidator-3.6.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-24 18:35:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "someengineering",
    "github_project": "resoto",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "resoto-plugin-tagvalidator"
}
        
Elapsed time: 0.32852s