1{ 2 "version": "1.0", 3 "examples": { 4 "CreateCluster": [ 5 { 6 "input": { 7 "clusterName": "my_cluster" 8 }, 9 "output": { 10 "cluster": { 11 "activeServicesCount": 0, 12 "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/my_cluster", 13 "clusterName": "my_cluster", 14 "pendingTasksCount": 0, 15 "registeredContainerInstancesCount": 0, 16 "runningTasksCount": 0, 17 "status": "ACTIVE" 18 } 19 }, 20 "comments": { 21 "input": { 22 }, 23 "output": { 24 } 25 }, 26 "description": "This example creates a cluster in your default region.", 27 "id": "to-create-a-new-cluster-1472514079365", 28 "title": "To create a new cluster" 29 } 30 ], 31 "CreateService": [ 32 { 33 "input": { 34 "desiredCount": 10, 35 "serviceName": "ecs-simple-service", 36 "taskDefinition": "hello_world" 37 }, 38 "output": { 39 "service": { 40 "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/default", 41 "createdAt": "2016-08-29T16:13:47.298Z", 42 "deploymentConfiguration": { 43 "maximumPercent": 200, 44 "minimumHealthyPercent": 100 45 }, 46 "deployments": [ 47 { 48 "createdAt": "2016-08-29T16:13:47.298Z", 49 "desiredCount": 10, 50 "id": "ecs-svc/9223370564342348388", 51 "pendingCount": 0, 52 "runningCount": 0, 53 "status": "PRIMARY", 54 "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6", 55 "updatedAt": "2016-08-29T16:13:47.298Z" 56 }, 57 { 58 "createdAt": "2016-08-29T15:52:44.481Z", 59 "desiredCount": 0, 60 "id": "ecs-svc/9223370564343611322", 61 "pendingCount": 0, 62 "runningCount": 0, 63 "status": "ACTIVE", 64 "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6", 65 "updatedAt": "2016-08-29T16:11:38.941Z" 66 } 67 ], 68 "desiredCount": 10, 69 "events": [ 70 71 ], 72 "loadBalancers": [ 73 74 ], 75 "pendingCount": 0, 76 "runningCount": 0, 77 "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service", 78 "serviceName": "ecs-simple-service", 79 "status": "ACTIVE", 80 "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6" 81 } 82 }, 83 "comments": { 84 "input": { 85 }, 86 "output": { 87 } 88 }, 89 "description": "This example creates a service in your default region called ``ecs-simple-service``. The service uses the ``hello_world`` task definition and it maintains 10 copies of that task.", 90 "id": "to-create-a-new-service-1472512584282", 91 "title": "To create a new service" 92 }, 93 { 94 "input": { 95 "desiredCount": 10, 96 "loadBalancers": [ 97 { 98 "containerName": "simple-app", 99 "containerPort": 80, 100 "loadBalancerName": "EC2Contai-EcsElast-15DCDAURT3ZO2" 101 } 102 ], 103 "role": "ecsServiceRole", 104 "serviceName": "ecs-simple-service-elb", 105 "taskDefinition": "console-sample-app-static" 106 }, 107 "output": { 108 "service": { 109 "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/default", 110 "createdAt": "2016-08-29T16:02:54.884Z", 111 "deploymentConfiguration": { 112 "maximumPercent": 200, 113 "minimumHealthyPercent": 100 114 }, 115 "deployments": [ 116 { 117 "createdAt": "2016-08-29T16:02:54.884Z", 118 "desiredCount": 10, 119 "id": "ecs-svc/9223370564343000923", 120 "pendingCount": 0, 121 "runningCount": 0, 122 "status": "PRIMARY", 123 "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6", 124 "updatedAt": "2016-08-29T16:02:54.884Z" 125 } 126 ], 127 "desiredCount": 10, 128 "events": [ 129 130 ], 131 "loadBalancers": [ 132 { 133 "containerName": "simple-app", 134 "containerPort": 80, 135 "loadBalancerName": "EC2Contai-EcsElast-15DCDAURT3ZO2" 136 } 137 ], 138 "pendingCount": 0, 139 "roleArn": "arn:aws:iam::012345678910:role/ecsServiceRole", 140 "runningCount": 0, 141 "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service-elb", 142 "serviceName": "ecs-simple-service-elb", 143 "status": "ACTIVE", 144 "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6" 145 } 146 }, 147 "comments": { 148 "input": { 149 }, 150 "output": { 151 } 152 }, 153 "description": "This example creates a service in your default region called ``ecs-simple-service-elb``. The service uses the ``ecs-demo`` task definition and it maintains 10 copies of that task. You must reference an existing load balancer in the same region by its name.", 154 "id": "to-create-a-new-service-behind-a-load-balancer-1472512484823", 155 "title": "To create a new service behind a load balancer" 156 } 157 ], 158 "DeleteCluster": [ 159 { 160 "input": { 161 "cluster": "my_cluster" 162 }, 163 "output": { 164 "cluster": { 165 "activeServicesCount": 0, 166 "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/my_cluster", 167 "clusterName": "my_cluster", 168 "pendingTasksCount": 0, 169 "registeredContainerInstancesCount": 0, 170 "runningTasksCount": 0, 171 "status": "INACTIVE" 172 } 173 }, 174 "comments": { 175 "input": { 176 }, 177 "output": { 178 } 179 }, 180 "description": "This example deletes an empty cluster in your default region.", 181 "id": "to-delete-an-empty-cluster-1472512705352", 182 "title": "To delete an empty cluster" 183 } 184 ], 185 "DeleteService": [ 186 { 187 "input": { 188 "service": "my-http-service" 189 }, 190 "output": { 191 }, 192 "comments": { 193 "input": { 194 }, 195 "output": { 196 } 197 }, 198 "description": "This example deletes the my-http-service service. The service must have a desired count and running count of 0 before you can delete it.", 199 "id": "e8183e38-f86e-4390-b811-f74f30a6007d", 200 "title": "To delete a service" 201 } 202 ], 203 "DeregisterContainerInstance": [ 204 { 205 "input": { 206 "cluster": "default", 207 "containerInstance": "container_instance_UUID", 208 "force": true 209 }, 210 "output": { 211 }, 212 "comments": { 213 "input": { 214 }, 215 "output": { 216 } 217 }, 218 "description": "This example deregisters a container instance from the specified cluster in your default region. If there are still tasks running on the container instance, you must either stop those tasks before deregistering, or use the force option.", 219 "id": "bf624927-cf64-4f4b-8b7e-c024a4e682f6", 220 "title": "To deregister a container instance from a cluster" 221 } 222 ], 223 "DescribeClusters": [ 224 { 225 "input": { 226 "clusters": [ 227 "default" 228 ] 229 }, 230 "output": { 231 "clusters": [ 232 { 233 "clusterArn": "arn:aws:ecs:us-east-1:aws_account_id:cluster/default", 234 "clusterName": "default", 235 "status": "ACTIVE" 236 } 237 ], 238 "failures": [ 239 240 ] 241 }, 242 "comments": { 243 "input": { 244 }, 245 "output": { 246 } 247 }, 248 "description": "This example provides a description of the specified cluster in your default region.", 249 "id": "ba88d100-9672-4231-80da-a4bd210bf728", 250 "title": "To describe a cluster" 251 } 252 ], 253 "DescribeContainerInstances": [ 254 { 255 "input": { 256 "cluster": "default", 257 "containerInstances": [ 258 "f2756532-8f13-4d53-87c9-aed50dc94cd7" 259 ] 260 }, 261 "output": { 262 "containerInstances": [ 263 { 264 "agentConnected": true, 265 "containerInstanceArn": "arn:aws:ecs:us-east-1:012345678910:container-instance/f2756532-8f13-4d53-87c9-aed50dc94cd7", 266 "ec2InstanceId": "i-807f3249", 267 "pendingTasksCount": 0, 268 "registeredResources": [ 269 { 270 "name": "CPU", 271 "type": "INTEGER", 272 "doubleValue": 0.0, 273 "integerValue": 2048, 274 "longValue": 0 275 }, 276 { 277 "name": "MEMORY", 278 "type": "INTEGER", 279 "doubleValue": 0.0, 280 "integerValue": 3768, 281 "longValue": 0 282 }, 283 { 284 "name": "PORTS", 285 "type": "STRINGSET", 286 "doubleValue": 0.0, 287 "integerValue": 0, 288 "longValue": 0, 289 "stringSetValue": [ 290 "2376", 291 "22", 292 "51678", 293 "2375" 294 ] 295 } 296 ], 297 "remainingResources": [ 298 { 299 "name": "CPU", 300 "type": "INTEGER", 301 "doubleValue": 0.0, 302 "integerValue": 1948, 303 "longValue": 0 304 }, 305 { 306 "name": "MEMORY", 307 "type": "INTEGER", 308 "doubleValue": 0.0, 309 "integerValue": 3668, 310 "longValue": 0 311 }, 312 { 313 "name": "PORTS", 314 "type": "STRINGSET", 315 "doubleValue": 0.0, 316 "integerValue": 0, 317 "longValue": 0, 318 "stringSetValue": [ 319 "2376", 320 "22", 321 "80", 322 "51678", 323 "2375" 324 ] 325 } 326 ], 327 "runningTasksCount": 1, 328 "status": "ACTIVE" 329 } 330 ], 331 "failures": [ 332 333 ] 334 }, 335 "comments": { 336 "input": { 337 }, 338 "output": { 339 } 340 }, 341 "description": "This example provides a description of the specified container instance in your default region, using the container instance UUID as an identifier.", 342 "id": "c8f439de-eb27-4269-8ca7-2c0a7ba75ab0", 343 "title": "To describe container instance" 344 } 345 ], 346 "DescribeServices": [ 347 { 348 "input": { 349 "services": [ 350 "ecs-simple-service" 351 ] 352 }, 353 "output": { 354 "failures": [ 355 356 ], 357 "services": [ 358 { 359 "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/default", 360 "createdAt": "2016-08-29T16:25:52.130Z", 361 "deploymentConfiguration": { 362 "maximumPercent": 200, 363 "minimumHealthyPercent": 100 364 }, 365 "deployments": [ 366 { 367 "createdAt": "2016-08-29T16:25:52.130Z", 368 "desiredCount": 1, 369 "id": "ecs-svc/9223370564341623665", 370 "pendingCount": 0, 371 "runningCount": 0, 372 "status": "PRIMARY", 373 "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6", 374 "updatedAt": "2016-08-29T16:25:52.130Z" 375 } 376 ], 377 "desiredCount": 1, 378 "events": [ 379 { 380 "createdAt": "2016-08-29T16:25:58.520Z", 381 "id": "38c285e5-d335-4b68-8b15-e46dedc8e88d", 382 "message": "(service ecs-simple-service) was unable to place a task because no container instance met all of its requirements. The closest matching (container-instance 3f4de1c5-ffdd-4954-af7e-75b4be0c8841) is already using a port required by your task. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide." 383 } 384 ], 385 "loadBalancers": [ 386 387 ], 388 "pendingCount": 0, 389 "runningCount": 0, 390 "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service", 391 "serviceName": "ecs-simple-service", 392 "status": "ACTIVE", 393 "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6" 394 } 395 ] 396 }, 397 "comments": { 398 "input": { 399 }, 400 "output": { 401 "services[0].events[0].message": "In this example, there is a service event that shows unavailable cluster resources." 402 } 403 }, 404 "description": "This example provides descriptive information about the service named ``ecs-simple-service``.", 405 "id": "to-describe-a-service-1472513256350", 406 "title": "To describe a service" 407 } 408 ], 409 "DescribeTaskDefinition": [ 410 { 411 "input": { 412 "taskDefinition": "hello_world:8" 413 }, 414 "output": { 415 "taskDefinition": { 416 "containerDefinitions": [ 417 { 418 "name": "wordpress", 419 "cpu": 10, 420 "environment": [ 421 422 ], 423 "essential": true, 424 "image": "wordpress", 425 "links": [ 426 "mysql" 427 ], 428 "memory": 500, 429 "mountPoints": [ 430 431 ], 432 "portMappings": [ 433 { 434 "containerPort": 80, 435 "hostPort": 80 436 } 437 ], 438 "volumesFrom": [ 439 440 ] 441 }, 442 { 443 "name": "mysql", 444 "cpu": 10, 445 "environment": [ 446 { 447 "name": "MYSQL_ROOT_PASSWORD", 448 "value": "password" 449 } 450 ], 451 "essential": true, 452 "image": "mysql", 453 "memory": 500, 454 "mountPoints": [ 455 456 ], 457 "portMappings": [ 458 459 ], 460 "volumesFrom": [ 461 462 ] 463 } 464 ], 465 "family": "hello_world", 466 "revision": 8, 467 "taskDefinitionArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/hello_world:8", 468 "volumes": [ 469 470 ] 471 } 472 }, 473 "comments": { 474 "input": { 475 }, 476 "output": { 477 } 478 }, 479 "description": "This example provides a description of the specified task definition.", 480 "id": "4c21eeb1-f1da-4a08-8c44-297fc8d0ea88", 481 "title": "To describe a task definition" 482 } 483 ], 484 "DescribeTasks": [ 485 { 486 "input": { 487 "tasks": [ 488 "c5cba4eb-5dad-405e-96db-71ef8eefe6a8" 489 ] 490 }, 491 "output": { 492 "failures": [ 493 494 ], 495 "tasks": [ 496 { 497 "clusterArn": "arn:aws:ecs:<region>:<aws_account_id>:cluster/default", 498 "containerInstanceArn": "arn:aws:ecs:<region>:<aws_account_id>:container-instance/18f9eda5-27d7-4c19-b133-45adc516e8fb", 499 "containers": [ 500 { 501 "name": "ecs-demo", 502 "containerArn": "arn:aws:ecs:<region>:<aws_account_id>:container/7c01765b-c588-45b3-8290-4ba38bd6c5a6", 503 "lastStatus": "RUNNING", 504 "networkBindings": [ 505 { 506 "bindIP": "0.0.0.0", 507 "containerPort": 80, 508 "hostPort": 80 509 } 510 ], 511 "taskArn": "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8" 512 } 513 ], 514 "desiredStatus": "RUNNING", 515 "lastStatus": "RUNNING", 516 "overrides": { 517 "containerOverrides": [ 518 { 519 "name": "ecs-demo" 520 } 521 ] 522 }, 523 "startedBy": "ecs-svc/9223370608528463088", 524 "taskArn": "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8", 525 "taskDefinitionArn": "arn:aws:ecs:<region>:<aws_account_id>:task-definition/amazon-ecs-sample:1" 526 } 527 ] 528 }, 529 "comments": { 530 "input": { 531 }, 532 "output": { 533 } 534 }, 535 "description": "This example provides a description of the specified task, using the task UUID as an identifier.", 536 "id": "a90b0cde-f965-4946-b55e-cfd8cc54e827", 537 "title": "To describe a task" 538 } 539 ], 540 "ListClusters": [ 541 { 542 "input": { 543 }, 544 "output": { 545 "clusterArns": [ 546 "arn:aws:ecs:us-east-1:<aws_account_id>:cluster/test", 547 "arn:aws:ecs:us-east-1:<aws_account_id>:cluster/default" 548 ] 549 }, 550 "comments": { 551 "input": { 552 }, 553 "output": { 554 } 555 }, 556 "description": "This example lists all of your available clusters in your default region.", 557 "id": "e337d059-134f-4125-ba8e-4f499139facf", 558 "title": "To list your available clusters" 559 } 560 ], 561 "ListContainerInstances": [ 562 { 563 "input": { 564 "cluster": "default" 565 }, 566 "output": { 567 "containerInstanceArns": [ 568 "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/f6bbb147-5370-4ace-8c73-c7181ded911f", 569 "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb" 570 ] 571 }, 572 "comments": { 573 "input": { 574 }, 575 "output": { 576 } 577 }, 578 "description": "This example lists all of your available container instances in the specified cluster in your default region.", 579 "id": "62a82a94-713c-4e18-8420-1d2b2ba9d484", 580 "title": "To list your available container instances in a cluster" 581 } 582 ], 583 "ListServices": [ 584 { 585 "input": { 586 }, 587 "output": { 588 "serviceArns": [ 589 "arn:aws:ecs:us-east-1:012345678910:service/my-http-service" 590 ] 591 }, 592 "comments": { 593 "input": { 594 }, 595 "output": { 596 } 597 }, 598 "description": "This example lists the services running in the default cluster for an account.", 599 "id": "1d9a8037-4e0e-4234-a528-609656809a3a", 600 "title": "To list the services in a cluster" 601 } 602 ], 603 "ListTagsForResource": [ 604 { 605 "input": { 606 "resourceArn": "arn:aws:ecs:region:aws_account_id:cluster/dev" 607 }, 608 "output": { 609 "tags": [ 610 { 611 "key": "team", 612 "value": "dev" 613 } 614 ] 615 }, 616 "comments": { 617 "input": { 618 }, 619 "output": { 620 } 621 }, 622 "description": "This example lists the tags for the 'dev' cluster.", 623 "id": "to-list-the-tags-for-a-cluster-1540582700259", 624 "title": "To list the tags for a cluster." 625 } 626 ], 627 "ListTaskDefinitionFamilies": [ 628 { 629 "input": { 630 }, 631 "output": { 632 "families": [ 633 "node-js-app", 634 "web-timer", 635 "hpcc", 636 "hpcc-c4-8xlarge" 637 ] 638 }, 639 "comments": { 640 "input": { 641 }, 642 "output": { 643 } 644 }, 645 "description": "This example lists all of your registered task definition families.", 646 "id": "b5c89769-1d94-4ca2-a79e-8069103c7f75", 647 "title": "To list your registered task definition families" 648 }, 649 { 650 "input": { 651 "familyPrefix": "hpcc" 652 }, 653 "output": { 654 "families": [ 655 "hpcc", 656 "hpcc-c4-8xlarge" 657 ] 658 }, 659 "comments": { 660 "input": { 661 }, 662 "output": { 663 } 664 }, 665 "description": "This example lists the task definition revisions that start with \"hpcc\".", 666 "id": "8a4cf9a6-42c1-4fe3-852d-99ac8968e11b", 667 "title": "To filter your registered task definition families" 668 } 669 ], 670 "ListTaskDefinitions": [ 671 { 672 "input": { 673 }, 674 "output": { 675 "taskDefinitionArns": [ 676 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep300:2", 677 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:1", 678 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:3", 679 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:4", 680 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:5", 681 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:6" 682 ] 683 }, 684 "comments": { 685 "input": { 686 }, 687 "output": { 688 } 689 }, 690 "description": "This example lists all of your registered task definitions.", 691 "id": "b381ebaf-7eba-4d60-b99b-7f6ae49d3d60", 692 "title": "To list your registered task definitions" 693 }, 694 { 695 "input": { 696 "familyPrefix": "wordpress" 697 }, 698 "output": { 699 "taskDefinitionArns": [ 700 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:3", 701 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:4", 702 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:5", 703 "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:6" 704 ] 705 }, 706 "comments": { 707 "input": { 708 }, 709 "output": { 710 } 711 }, 712 "description": "This example lists the task definition revisions of a specified family.", 713 "id": "734e7afd-753a-4bc2-85d0-badddce10910", 714 "title": "To list the registered task definitions in a family" 715 } 716 ], 717 "ListTasks": [ 718 { 719 "input": { 720 "cluster": "default" 721 }, 722 "output": { 723 "taskArns": [ 724 "arn:aws:ecs:us-east-1:012345678910:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84", 725 "arn:aws:ecs:us-east-1:012345678910:task/6b809ef6-c67e-4467-921f-ee261c15a0a1" 726 ] 727 }, 728 "comments": { 729 "input": { 730 }, 731 "output": { 732 } 733 }, 734 "description": "This example lists all of the tasks in a cluster.", 735 "id": "9a6ec707-1a77-45d0-b2eb-516b5dd9e924", 736 "title": "To list the tasks in a cluster" 737 }, 738 { 739 "input": { 740 "cluster": "default", 741 "containerInstance": "f6bbb147-5370-4ace-8c73-c7181ded911f" 742 }, 743 "output": { 744 "taskArns": [ 745 "arn:aws:ecs:us-east-1:012345678910:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84" 746 ] 747 }, 748 "comments": { 749 "input": { 750 }, 751 "output": { 752 } 753 }, 754 "description": "This example lists the tasks of a specified container instance. Specifying a ``containerInstance`` value limits the results to tasks that belong to that container instance.", 755 "id": "024bf3b7-9cbb-44e3-848f-9d074e1fecce", 756 "title": "To list the tasks on a particular container instance" 757 } 758 ], 759 "RegisterTaskDefinition": [ 760 { 761 "input": { 762 "containerDefinitions": [ 763 { 764 "name": "sleep", 765 "command": [ 766 "sleep", 767 "360" 768 ], 769 "cpu": 10, 770 "essential": true, 771 "image": "busybox", 772 "memory": 10 773 } 774 ], 775 "family": "sleep360", 776 "taskRoleArn": "", 777 "volumes": [ 778 779 ] 780 }, 781 "output": { 782 "taskDefinition": { 783 "containerDefinitions": [ 784 { 785 "name": "sleep", 786 "command": [ 787 "sleep", 788 "360" 789 ], 790 "cpu": 10, 791 "environment": [ 792 793 ], 794 "essential": true, 795 "image": "busybox", 796 "memory": 10, 797 "mountPoints": [ 798 799 ], 800 "portMappings": [ 801 802 ], 803 "volumesFrom": [ 804 805 ] 806 } 807 ], 808 "family": "sleep360", 809 "revision": 1, 810 "taskDefinitionArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:19", 811 "volumes": [ 812 813 ] 814 } 815 }, 816 "comments": { 817 "input": { 818 }, 819 "output": { 820 } 821 }, 822 "description": "This example registers a task definition to the specified family.", 823 "id": "to-register-a-task-definition-1470764550877", 824 "title": "To register a task definition" 825 } 826 ], 827 "RunTask": [ 828 { 829 "input": { 830 "cluster": "default", 831 "taskDefinition": "sleep360:1" 832 }, 833 "output": { 834 "tasks": [ 835 { 836 "containerInstanceArn": "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb", 837 "containers": [ 838 { 839 "name": "sleep", 840 "containerArn": "arn:aws:ecs:us-east-1:<aws_account_id>:container/58591c8e-be29-4ddf-95aa-ee459d4c59fd", 841 "lastStatus": "PENDING", 842 "taskArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0" 843 } 844 ], 845 "desiredStatus": "RUNNING", 846 "lastStatus": "PENDING", 847 "overrides": { 848 "containerOverrides": [ 849 { 850 "name": "sleep" 851 } 852 ] 853 }, 854 "taskArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0", 855 "taskDefinitionArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:1" 856 } 857 ] 858 }, 859 "comments": { 860 "input": { 861 }, 862 "output": { 863 } 864 }, 865 "description": "This example runs the specified task definition on your default cluster.", 866 "id": "6f238c83-a133-42cd-ab3d-abeca0560445", 867 "title": "To run a task on your default cluster" 868 } 869 ], 870 "TagResource": [ 871 { 872 "input": { 873 "resourceArn": "arn:aws:ecs:region:aws_account_id:cluster/dev", 874 "tags": [ 875 { 876 "key": "team", 877 "value": "dev" 878 } 879 ] 880 }, 881 "output": { 882 }, 883 "comments": { 884 "input": { 885 }, 886 "output": { 887 } 888 }, 889 "description": "This example tags the 'dev' cluster with key 'team' and value 'dev'.", 890 "id": "to-tag-a-cluster-1540581863751", 891 "title": "To tag a cluster." 892 } 893 ], 894 "UntagResource": [ 895 { 896 "input": { 897 "resourceArn": "arn:aws:ecs:region:aws_account_id:cluster/dev", 898 "tagKeys": [ 899 "team" 900 ] 901 }, 902 "output": { 903 }, 904 "comments": { 905 "input": { 906 }, 907 "output": { 908 } 909 }, 910 "description": "This example deletes the 'team' tag from the 'dev' cluster.", 911 "id": "to-untag-a-cluster-1540582546056", 912 "title": "To untag a cluster." 913 } 914 ], 915 "UpdateService": [ 916 { 917 "input": { 918 "service": "my-http-service", 919 "taskDefinition": "amazon-ecs-sample" 920 }, 921 "output": { 922 }, 923 "comments": { 924 "input": { 925 }, 926 "output": { 927 } 928 }, 929 "description": "This example updates the my-http-service service to use the amazon-ecs-sample task definition.", 930 "id": "cc9e8900-0cc2-44d2-8491-64d1d3d37887", 931 "title": "To change the task definition used in a service" 932 }, 933 { 934 "input": { 935 "desiredCount": 10, 936 "service": "my-http-service" 937 }, 938 "output": { 939 }, 940 "comments": { 941 "input": { 942 }, 943 "output": { 944 } 945 }, 946 "description": "This example updates the desired count of the my-http-service service to 10.", 947 "id": "9581d6c5-02e3-4140-8cc1-5a4301586633", 948 "title": "To change the number of tasks in a service" 949 } 950 ] 951 } 952} 953