def recent_task_definition
      arns = task_definition_arns(@task_definition)
      # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:6",
      last_definition_arn = arns.first
      # puts "last_definition_arn #{last_definition_arn}"
      task_name = last_definition_arn.split("/").last
      resp = ecs.describe_task_definition(task_definition: task_name)

      resp.task_definition
    end
def recent_task_definition
      arns = task_definition_arns(@task_definition)
      # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:6",
      last_definition_arn = arns.first
      # puts "last_definition_arn #{last_definition_arn}"
      task_name = last_definition_arn.split("/").last
      resp = ecs.describe_task_definition(task_definition: task_name)

      resp.task_definition
    end
Usually most recent task definition.
 If user has specified task_definition with specific version like
   demo-web:8
 Then it'll be that exact task definnition.