Difference between revisions of "Ecs-cli ps"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
+
  [[ecs-cli]] ps [[--cluster]] [[CLUSTER_NAME]]
 
 
  [[ecs-cli]] ps --cluster CLUSTER_NAME
 
  
 
  ecs-cli ps --cluster CLUSTER_NAME
 
  ecs-cli ps --cluster CLUSTER_NAME
  Name                                              State    Ports                      TaskDefinition                              Health
+
  Name                                              State    Ports                      [[TaskDefinition]]                               Health
 
  CLUSTER_NAME/60d4c240f650xxxxxe356d432/xxxxxx          RUNNING                            your-task-name:49                UNKNOWN
 
  CLUSTER_NAME/60d4c240f650xxxxxe356d432/xxxxxx          RUNNING                            your-task-name:49                UNKNOWN
 
  CLUSTER_NAME/10d4cxxxxxxxxbb916b6be356d432/yyyyyyy    RUNNING  10.2.0.192:3000->3000/tcp  your-second-task:49                UNKNOWN
 
  CLUSTER_NAME/10d4cxxxxxxxxbb916b6be356d432/yyyyyyy    RUNNING  10.2.0.192:3000->3000/tcp  your-second-task:49                UNKNOWN
 
+
CLUSTER_NAME/94dd8af0c95a4071ad8a58ec0cfa9tb9/zzzzzzzz    STOPPED ExitCode: 1  3000->3000/tcp        your-third-task:52      UNKNOWN
  
 
== Error ==
 
== Error ==
Line 22: Line 20:
 
* <code>[[aws ecs]]</code>
 
* <code>[[aws ecs]]</code>
 
* <code>[[aws ecs list-clusters]]</code>
 
* <code>[[aws ecs list-clusters]]</code>
 +
* <code>[[aws ecs list-task-definitions]]</code>
 +
* <code>[[aws ecs describe-task-definition --task-definition]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 16:11, 11 May 2023

ecs-cli ps --cluster CLUSTER_NAME
ecs-cli ps --cluster CLUSTER_NAME
Name                                               State    Ports                      TaskDefinition                               Health
CLUSTER_NAME/60d4c240f650xxxxxe356d432/xxxxxx          RUNNING                             your-task-name:49                 UNKNOWN
CLUSTER_NAME/10d4cxxxxxxxxbb916b6be356d432/yyyyyyy     RUNNING  10.2.0.192:3000->3000/tcp  your-second-task:49                UNKNOWN
CLUSTER_NAME/94dd8af0c95a4071ad8a58ec0cfa9tb9/zzzzzzzz     STOPPED ExitCode: 1  3000->3000/tcp        your-third-task:52      UNKNOWN

Error[edit]

FATA[0000] Error executing 'ps': Please configure a cluster using the configure command or the '--cluster' flag
ecs-cli ps
FATA[0000] Error executing 'ps': Set a region using ecs-cli configure command with the --region flag or AWS_REGION environment variable or --profile flag
Solution:
export AWS_REGION=eu-central-1

Related[edit]

See also[edit]

Advertising: