'Programmatically activate User-Defined Cost Allocation Tags

Background

I've just created some new tags in my AWS tenant using their Amazon Resource Groups Tagging API.

Problem

There doesn't seem to be anyway of activating the newly created tags programmatically. So I still need to log into my account and manually click a button or two.

This seems like a glaringly obvious shortcoming.

Question

Has anyone else come up against this and found a solution?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source