The Dahomean
The Dahomean

Reputation: 58

AWS Workspaces CLI: Syntax for `Start - Workspaces`

I am trying to craft a script to start workspaces 10 minutes before the workday begins. I am starting with running the CLI command below and then build from there. I have checked that I am in the right region:

aws workspaces start-workspaces --start-workspace-requests WorkspaceId=[Workspace ID]

This command is timing out. It feels like 101 but can't find any references online. Thanks for your help.

Upvotes: 1

Views: 1286

Answers (1)

Adam John
Adam John

Reputation: 196

Sorry for the late reply. Accidentally found this when looking for something else...

It works without an [array] for the WorkspaceId parameter shorthand syntax. Unless you're passing a JSON, you probably intend to use this method.

aws workspaces start-workspaces --start-workspace-requests WorkspaceId=ws-abcd12345

Here is the reference: https://docs.aws.amazon.com/cli/latest/reference/workspaces/start-workspaces.html

Upvotes: 2

Related Questions