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
feita há um ano207 visualizações
1 Resposta
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" ]
            }
        ]
}
respondido há um ano
  • 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.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas