0

I want to know when task definition revisions have been made.
When I run this command

aws ecs describe-task-definition --region us-east-1 --task-definition my_task_definition

it gives me the latest revision (in my case #5) and gives me when and who made it ("registeredAt", "registeredBy").

{
    "taskDefinition": {
        "taskDefinitionArn": "arn:aws:ecs:us-east-1:{account_number}:task-definition/my_task_definition:5",
        ...
        "revision": 5,
        "volumes": [],
        "status": "ACTIVE",
        ...
        "cpu": "2048",
        "memory": "4096",
        "registeredAt": "2021-10-14T11:45:59.423000-07:00",
        "registeredBy": "arn:aws:sts::{account_number}:assumed-role/{role_name}"
     }
 }

But when I specify another active revision number - it doesn't give me "registeredAt", "registeredBy" fields for that revision.
For example:

aws ecs describe-task-definition --region us-east-1 --task-definition my_task_definition:4

gives only this:

{
    "taskDefinition": {
        "taskDefinitionArn": "arn:aws:ecs:us-east-1:{account_number}:task-definition/my_task_definition:4",
        ...
        "revision": 4,
        "volumes": [],
        "status": "ACTIVE",
        ...
        "cpu": "2048",
        "memory": "4096"
    }
}

Is there any way to know who and when made a task definition revision prior to the latest number?

0 Answers0