Skip to content

Instantly share code, notes, and snippets.

@joshp123
Created October 2, 2018 16:22
Show Gist options
  • Save joshp123/1d676963087642c019ed0215725f8a66 to your computer and use it in GitHub Desktop.
Save joshp123/1d676963087642c019ed0215725f8a66 to your computer and use it in GitHub Desktop.
start aws workspace matching given username
aws workspaces describe-workspaces | jq '.Workspaces[] | select(.UserName=="josh").WorkspaceId' | xargs -I % aws workspaces start-workspaces --cli-input-json "$(aws workspaces start-workspaces --generate-cli-skeleton | sed 's/\"\"/\"%\"/')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment