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
demandé il y a un an207 vues
1 réponse
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" ]
            }
        ]
}
répondu il y a un an
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions