Skip to content

ResourceGroupTagging

Daniel-t edited this page May 30, 2018 · 2 revisions

ResourceGroupTagging (Tagging)

AWS service for working with the Resource Group Tagging API (manipulating Tags)

Example

This example has four outputs, it depends on having tagged resources in your account:

  • Get all resources and their tags
  • Get all tag names
  • Get all tage values for resources with the tag 'Name'
  • Get the first entry returned above and get all resources with that tag.

flow

[{"id":"d9792bb6.9975f8","type":"inject","z":"a0ab0878.35e198","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":441.5,"wires":"92169f16.de8f4","e7286e51.c39af","57de3379.8e478c"},{"id":"66e64f00.d5787","type":"debug","z":"a0ab0878.35e198","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":667,"y":441,"wires":[]},{"id":"92169f16.de8f4","type":"AWS ResourceGroupsTaggingAPI","z":"a0ab0878.35e198","aws":"bec2452f.03a118","operation":"GetResources","Key":"","ResourceARNList":"","Tags":"","TagKeys":"","name":"","x":369,"y":440,"wires":"66e64f00.d5787"},{"id":"e7286e51.c39af","type":"AWS ResourceGroupsTaggingAPI","z":"a0ab0878.35e198","aws":"bec2452f.03a118","operation":"GetTagKeys","Key":"","ResourceARNList":"","Tags":"","TagKeys":"","name":"","x":363,"y":492,"wires":"317b2dbc.db0aa2"},{"id":"57de3379.8e478c","type":"AWS ResourceGroupsTaggingAPI","z":"a0ab0878.35e198","aws":"bec2452f.03a118","operation":"GetTagValues","Key":"Name","ResourceARNList":"","Tags":"","TagKeys":"","name":"","x":376,"y":543,"wires":"27b91f96.fbee3","54fc2fe6.aa21b"},{"id":"317b2dbc.db0aa2","type":"debug","z":"a0ab0878.35e198","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":668,"y":496,"wires":[]},{"id":"27b91f96.fbee3","type":"debug","z":"a0ab0878.35e198","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":667,"y":543,"wires":[]},{"id":"54fc2fe6.aa21b","type":"function","z":"a0ab0878.35e198","name":"Create Filter","func":"msg.TagFilters= [\n {\n Key: 'Name',\n Values: [\n msg.payload.TagValues[0]\n ]\n }];\nreturn msg;","outputs":1,"noerr":0,"x":142,"y":618.5,"wires":"81de672a.109ec8"},{"id":"81de672a.109ec8","type":"AWS ResourceGroupsTaggingAPI","z":"a0ab0878.35e198","aws":"bec2452f.03a118","operation":"GetResources","Key":"","ResourceARNList":"","Tags":"","TagKeys":"","name":"","x":406,"y":620,"wires":"a2b49250.73afb"},{"id":"a2b49250.73afb","type":"debug","z":"a0ab0878.35e198","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":673,"y":616,"wires":[]},{"id":"bec2452f.03a118","type":"amazon config","z":"","name":"AWS","region":"us-east-1"}]