Filtered List in AWS console

0

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

gefragt vor 2 Jahren396 Aufrufe
2 Antworten
0

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")'
profile pictureAWS
beantwortet vor 2 Jahren
0

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)
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen