Home > Back-end >  Can I use AWS CLI to add tags to all processing jobs matching a certain regex
Can I use AWS CLI to add tags to all processing jobs matching a certain regex

Time:07-12

I have close to 100 processing jobs to which I want to add certain tags. I've found commands that you can use to tag one resource with a list of tags. Is there any way I can do this for multiple jobs? Through CLI or through python boto?

CodePudding user response:

You can ResourceGroupsTaggingAPI's method tag_resources().
This is used to apply one or more tags to the specified list of resources.

References:

  1. Tag Resources using boto3
  2. UnTag Resources using boto3
  • Related