infrahouse_toolkit.cli.ih_aws.cmd_resources package

Subpackages

Submodules

infrahouse_toolkit.cli.ih_aws.cmd_resources.tag_filters module

Shared tag filter helpers for ih-aws resources subcommands.

infrahouse_toolkit.cli.ih_aws.cmd_resources.tag_filters.build_tag_filters(tags: tuple, service: str, environment: str) List[Dict][source]

Build a list of tag filter dicts from CLI options.

Each tag spec can be key=value (match specific value) or just key (match any resource that has the tag, regardless of value).

Parameters:
  • tags – Tuple of key=value or key strings from --tag options.

  • service – Shorthand value for --service option.

  • environment – Shorthand value for --environment option.

Returns:

List of dicts. Each dict has a "key" entry and an optional "value" entry (omitted for key-only filters).

Module contents