Difference between revisions of "Cloud AWS"

From WTFwiki
Jump to navigation Jump to search
(add taggingapi hints)
 
(No difference)

Latest revision as of 12:52, 19 October 2022

Tagging

When auditing tags in use or planning tag policies, aws cli provides helpful tagging api commands:

  • Get all tag keys used in an account:
 $ aws resourcegroupstaggingapi get-tag-keys
 {
     "TagKeys": [
         "App",
         "Contact1",
  ...
 }
  • Get all permutations (values) for a single tag key used in an account:
 $ aws resourcegroupstaggingapi get-tag-values --key App
 {
     "TagValues": [
         "app1",
         "someapp-dev1",
         "console-dev1",
  ...
 }