diff --git a/awscli/examples/ecs/wait/services-stable.rst b/awscli/examples/ecs/wait/services-stable.rst index 4ef1dea77f83..0a825ba5eafd 100644 --- a/awscli/examples/ecs/wait/services-stable.rst +++ b/awscli/examples/ecs/wait/services-stable.rst @@ -5,11 +5,3 @@ The following ``wait`` example pauses and continues only after it can confirm th aws ecs wait services-stable \ --cluster MyCluster \ --services MyService - -**Example 2: To pause running until a task is confirmed to be running** - -The following ``wait`` example pauses and continues only after the specified task enters a ``RUNNING`` state. :: - - aws ecs wait services-stable \ - --cluster MyCluster \ - --tasks arn:aws:ecs:us-west-2:123456789012:task/a1b2c3d4-5678-90ab-cdef-44444EXAMPLE \ No newline at end of file diff --git a/awscli/examples/ecs/wait/tasks-running.rst b/awscli/examples/ecs/wait/tasks-running.rst new file mode 100644 index 000000000000..e979e7027917 --- /dev/null +++ b/awscli/examples/ecs/wait/tasks-running.rst @@ -0,0 +1,7 @@ +**Example 1: To pause running until a task is confirmed to be running** + +The following ``wait`` example pauses and continues only after the specified task enters a ``RUNNING`` state. :: + + aws ecs wait tasks-running \ + --cluster MyCluster \ + --tasks arn:aws:ecs:us-west-2:123456789012:task/a1b2c3d4-5678-90ab-cdef-44444EXAMPLE