내용으로 건너뛰기

Filtered List in AWS console

1

New to the Workspace admin console, how can I see a filtered list of just unhealthy workspaces ?

질문됨 4년 전710회 조회

3개 답변
1

It is not possible to filter by state using the AWS Console however this can be achieved with the AWS CLI and the jq library

aws workspaces describe-workspaces | jq '.Workspaces[] | select(.State == "UNHEALTHY")'
AWS

답변함 4년 전

1

You can sort the console output by Status, but you cannot filter by it. As suggested, the best way to get this information is via the CLI or API. In PowerShell it would be

Get-WKSWorkspace | Where-Oject {$_.State -like "Unhealthy"}

and in python it would be something like

import boto3
client = boto3.client('workspaces')
wks = client.describe_workspaces()
for wk in wks['Workspaces']:
   if wk['State'] == 'UNHEALTHY':
      print(wk)
전문가

답변함 4년 전

0

Every time they ask for feedback on AWS console i give it 1 star and rant about how unusable it is. Such a simple thing to filter by state or other things for ALL workspaces, not just for single page. We have thousands of them. What the actual F. Who designs this console? For humans? Thank you others posting CLI commands, which AWS documentations is not that helpful to come up with.

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.