My automations are tagged in system manager AWS, but I can't find them

0

"StartAutomationExecution": https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_StartAutomationExecution.html

The "StartAutomationExecution" call supports tagging, but I could not find a way to read it from the "GetAutomationExecution" and "DescribeAutomationExecutions" calls either.

What is the best way to retrieve the tag I put on the automation that was executed?

combii
asked a year ago201 views
1 Answer
0

If you want to find the tag key/value, you can use the ListTagsForResources that lists tags for a specified resource like this:

{
    "ResourceType": "Automation",
    "ResourceId": "EXAMPLE_ID"
}

You can to retrieve the execution with the tag key using DescribeAutomationExecutions like this:

{
    "Filters":
        [
            {
                "Key": "TagKey",
                "Values": [ "EXAMPLE_KEY" ]
            }
        ]
}
answered a year ago
  • Thanks for the response. Let's imagine you have a user executing the automation and you are tagging the automation with his username. If you didn't know what the username tag of every automation was, how would you find out?

  • Interesting, what would have been useful is if DescribeAutomationExecutions could filter by tagValue. Then you could have filtered by the username value.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions