Skip to main content

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.

Metadata

Release files for resoto-plugin-tagvalidator 3.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resoto-plugin-tagvalidator 3.7.0
File Size Uploaded Provenance Actions
resoto-plugin-tagvalidator-3.7.0.tar.gz 5.2 kB Without provenance Details for resoto-plugin-tagvalidator-3.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for resoto-plugin-tagvalidator 3.7.0
File Interpreter ABI Platform Actions
resoto_plugin_tagvalidator-3.7.0-py3-none-any.whl Python 3 none any Details for resoto_plugin_tagvalidator-3.7.0-py3-none-any.whl

Total release size: 10.5 kB

Release files / resoto-plugin-tagvalidator-3.7.0.tar.gz

Download URL resoto-plugin-tagvalidator-3.7.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
16ae19f9f0cd87c63fa160ebf480be28fe4b2bc67a42c2d263adaf6c11370d02
BLAKE2b-256 checksum
How to use checksums
e14f078641bca81bf5b3ce9e88afd4b03259ccf98344ef5122d9fb8691b5b459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / resoto_plugin_tagvalidator-3.7.0-py3-none-any.whl

Download URL resoto_plugin_tagvalidator-3.7.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2c3d7d88894f3bfe4160f07363ffb4008affef1bad27f77718be4aa73165754
BLAKE2b-256 checksum
How to use checksums
a20c0e7174f77bf9a11229579f8cf76c8043fe4f5666bc545efd62c3c4803375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for resoto-plugin-tagvalidator 3.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.7.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page