Resoto Tag Validator Plugin
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file resoto-plugin-tagvalidator-3.6.0.tar.gz.
File metadata
- Download URL: resoto-plugin-tagvalidator-3.6.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7eab461ff2398abcca0df5d555a7350a0e0ac7bbb51110d06feb808b7b14127
|
|
| MD5 |
32f2607ddb4773055b2bc1609f6df92d
|
|
| BLAKE2b-256 |
906872ec3a5fd66e94c1b57fcb92a2d746f87200efe778fc35979084aefe4fc1
|
File details
Details for the file resoto_plugin_tagvalidator-3.6.0-py3-none-any.whl.
File metadata
- Download URL: resoto_plugin_tagvalidator-3.6.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1ae01523539c0a48344984354e8ddc1ac714744847a2d7b78860ca8e69b98d
|
|
| MD5 |
f4a54fc6920d1c246a8011eb21512d0d
|
|
| BLAKE2b-256 |
0b5a6b396df0a5c8dfbc5124f646a266aba234b0c363934df8083ef709265d41
|