Closed jim-weller closed 1 month ago
More weird combinations
works, just the tag-group for git
__ __
\ \ / /
\ \/ /___ _ ____
\ / _ \| |/ __|
| | |_| | /
|_|\____/|__|v0.1.189
Yor Findings Summary
Scanned Resources: 1
New Resources Traced: 1
Updated Resources: 0
New Resources Traced (1):
+---------+------------------------------------+---------------------------+------------------------------------------+--------+
| FILE | RESOURCE | TAG KEY | TAG VALUE | YOR ID |
+---------+------------------------------------+---------------------------+------------------------------------------+--------+
| main.tf | aws_ssm_parameter.environment_type | TEST_git_repo | enbl-demo-iac-yor-tagging | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_org | HylandSoftware | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_modifiers | jim.weller | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_last_modified_by | jim.weller@hyland.com | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_last_modified_at | 2024-02-29 15:21:45 | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_file | main.tf | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_commit | 4c39aa9f59024a8d618a77bba5a75f05345058e5 | |
+---------+------------------------------------+---------------------------+------------------------------------------+--------+
add code2cloud tag-group and it still works
❯ yor tag -d . --tag-prefix "TEST_" --tag-groups git,code2cloud --dry-run
__ __
\ \ / /
\ \/ /___ _ ____
\ / _ \| |/ __|
| | |_| | /
|_|\____/|__|v0.1.189
Yor Findings Summary
Scanned Resources: 1
New Resources Traced: 1
Updated Resources: 0
New Resources Traced (1):
+---------+------------------------------------+---------------------------+------------------------------------------+--------+
| FILE | RESOURCE | TAG KEY | TAG VALUE | YOR ID |
+---------+------------------------------------+---------------------------+------------------------------------------+--------+
| main.tf | aws_ssm_parameter.environment_type | TEST_yor_trace | baf4cd53-f627-4f80-9511-bb467ebcc121 | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_yor_name | environment_type | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_repo | enbl-demo-iac-yor-tagging | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_org | HylandSoftware | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_modifiers | jim.weller | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_last_modified_by | jim.weller@hyland.com | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_last_modified_at | 2024-02-29 15:21:45 | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_file | main.tf | |
+ + +---------------------------+------------------------------------------+--------+
| | | TEST_git_commit | 4c39aa9f59024a8d618a77bba5a75f05345058e5 | |
+---------+------------------------------------+---------------------------+------------------------------------------+--------+
add a tag and it fails
❯ yor tag -d . --tag-prefix "TEST_" --tag-groups git --tags git_repo --dry-run
__ __
\ \ / /
\ \/ /___ _ ____
\ / _ \| |/ __|
| | |_| | /
|_|\____/|__|v0.1.189
Yor Findings Summary
Scanned Resources: 1
New Resources Traced: 0
Updated Resources: 0
It looks like tags and tag-prefix are incompatible. This doesn't work
yor tag -d . --tag-prefix "TEST_" --tags git_repo --dry-run
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug tag-prefix does not play well with other command line switches. I've tried quite a few combinations of switches. Prefix only seems to work in the barest of configurations.
To Reproduce main.tf
prefix switch breaks behavior when specifying tags
prefix switch works alone
Expected behavior yor should tag files with the appropriate prefix and honor other CLI switches like tags and tag-groups.
Desktop (please complete the following information):
Additional context n/a