-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI examples for ec2, ecs, ivs-realtime, lambda
- Loading branch information
Showing
10 changed files
with
318 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
**Get the endpoint for ECS agent for polling updates** | ||
|
||
The following ``discover-poll-endpoint`` example returns the endpoint for the ECS agent to poll for the updates. You can pass container instance ID or full ARN of container instances. This example uses ID of the container instance. :: | ||
|
||
aws ecs discover-poll-endpoint \ | ||
--container-instance d5f596ccb5794833b778c680c318ft78 \ | ||
--cluster MyCluster | ||
|
||
Output:: | ||
|
||
{ | ||
"endpoint": "https://ecs-a-16.us-west-2.amazonaws.com/", | ||
"telemetryEndpoint": "https://ecs-t-16.us-west-2.amazonaws.com/", | ||
"serviceConnectEndpoint": "https://ecs-sc.us-west-2.api.aws" | ||
} | ||
|
||
For more information on Agent Endpoints, see `Create VPC Endpoints for Amazon ECS <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/vpc-endpoints.html#ecs-setting-up-vpc-create>`__ in the *Amazon ECS Developer Guide*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
**Wait until an ECS service becomes inactive** | ||
|
||
The following ``service-inactive`` example waits until ECS services becomes inactive in the cluster. :: | ||
|
||
aws ecs wait services-inactive \ | ||
--cluster MyCluster \ | ||
--services MyService | ||
|
||
This command produces no output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
**Example 1: Wait until an ECS task is in stopped state** | ||
|
||
The following ``wait tasks-stopped`` example waits until the provided tasks in the command are in a stopped state. You can pass IDs or full ARN of the tasks. This example uses ID of the task. :: | ||
|
||
aws ecs wait tasks-stopped \ | ||
--cluster MyCluster \ | ||
--tasks 2c196f0a00dd4f58b7c8897a5c7bce13 | ||
|
||
This command produces no output. | ||
|
||
**Example 2: Wait until multiple ECS tasks are in stopped state** | ||
|
||
The following ``wait tasks-stopped`` example waits until the multiple tasks provided in the command are in a stopped state. You can pass IDs or full ARN of the tasks. This example uses IDs of the tasks. :: | ||
|
||
aws ecs wait tasks-stopped \ | ||
--cluster MyCluster \ | ||
--tasks 2c196f0a00dd4f58b7c8897a5c7bce13 4d590253bb114126b7afa7b58EXAMPLE | ||
|
||
This command produces no output. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.