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 justkey(match any resource that has the tag, regardless of value).- Parameters:
tags – Tuple of
key=valueorkeystrings from--tagoptions.service – Shorthand value for
--serviceoption.environment – Shorthand value for
--environmentoption.
- Returns:
List of dicts. Each dict has a
"key"entry and an optional"value"entry (omitted for key-only filters).