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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南