Created
October 2, 2018 16:22
-
-
Save joshp123/1d676963087642c019ed0215725f8a66 to your computer and use it in GitHub Desktop.
start aws workspace matching given username
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
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