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
已提问 1 年前207 查看次数
1 回答
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" ]
            }
        ]
}
已回答 1 年前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则