id: aws-ecs-container-agent-tasks

info:
  name: aws-ecs-container-agent-tasks
  author: dogasantos
  severity: info
  description: Aws container metadata content
  reference:
    - https://docs.aws.amazon.com/en_us/elasticbeanstalk/latest/dg/create_deploy_docker_ecstutorial.html#create_deploy_docker_ecstutorial_connect_inspect
  metadata:
    max-request: 2
  tags: miscellaneous,aws,docker,ec2,misc

http:
  - method: GET
    path:
      - "{{BaseURL}}/v1/metadata"
      - "{{BaseURL}}/v1/tasks"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "arn:aws:ecs"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100e0ad75a640d5bd916f17932830ef5def577bd297e1ac7f4b2fac1f92bf171b05022100fd78fb26864056c707fd2617d5baf93a3f6f13ac78334d072269d19de0033dc5:922c64590222798bb761d5b6d8e72950