-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added example outputs for ECS update-service command #9080
base: develop
Are you sure you want to change the base?
Conversation
Added example outputs and --cluster since without --cluster the command with service name will only check for default cluster
Added Active Taskdefinition part for better understanding.
Corrected the documentation link as previous link was redirecting to Welcome page in ECS documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Nambi,
There were a few formatting issues. Please accept the suggested changes, then this PR will be ready for maintainer review.
|
||
aws ecs update-service --service my-http-service --task-definition amazon-ecs-sample | ||
aws ecs update-service --service my-http-service --cluster my-cluster --task-definition amazon-ecs-sample |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws ecs update-service --service my-http-service --cluster my-cluster --task-definition amazon-ecs-sample | |
aws ecs update-service \ | |
--service my-http-service \ | |
--cluster my-cluster \ | |
--task-definition amazon-ecs-sample |
@@ -1,13 +1,173 @@ | |||
**Example 1: To change the task definition used in a service** | |||
|
|||
The following ``update-service`` example updates the ``my-http-service`` service to use the ``amazon-ecs-sample`` task definition. :: | |||
The following ``update-service`` example updates the ``my-http-service`` service present in ``my-cluster`` cluster to use the latest ``ACTIVE`` revision of ``amazon-ecs-sample`` task definition. :: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following ``update-service`` example updates the ``my-http-service`` service present in ``my-cluster`` cluster to use the latest ``ACTIVE`` revision of ``amazon-ecs-sample`` task definition. :: | |
The following ``update-service`` example updates the ``my-http-service`` service present in the ``my-cluster`` cluster to use the latest ``ACTIVE`` revision of ``amazon-ecs-sample`` task definition. :: |
"propagateTags": "NONE", | ||
"enableExecuteCommand": false | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For more information, see `Updating a Service <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-console-v2.html>`__ in the *Amazon ECS Developer Guide*. | |
For more information, see `Updating a Service <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-console-v2.html>`_ in the *Amazon ECS Developer Guide*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For more information, see `Updating a Service <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-console-v2.html>`_ in the *Amazon ECS Developer Guide*. | |
For more information, see `Updating a Service <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-console-v2.html>`__ in the *Amazon ECS Developer Guide*. |
The following ``update-service`` example updates the desired task count of the service ``my-http-service`` to 3. :: | ||
The following ``update-service`` example updates the desired task count of the service ``my-http-service`` present in ``my-cluster`` cluster to 3. :: | ||
|
||
aws ecs update-service --service my-http-service --cluster my-cluster --desired-count 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws ecs update-service --service my-http-service --cluster my-cluster --desired-count 3 | |
aws ecs update-service \ | |
--service my-http-service \ | |
--cluster my-cluster \ | |
--desired-count 3 |
Issue #, if available:
Description of changes:
Added outputs for example commands and corrected the documentation link since previous link was redirecting to ECS Welcome page.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.